The pain of joining tables, are there any alternatives?
posted 10 years ago
Hi, I was wondering if there are any other way to insert records in the database to avoid too many joins. Ihave more than 10 tables to join, maybe 11 or 12... When constructing the query, it's just too lengty... Are there any other technniques you could suggest? Thank you.
You could denormalize your tables. But that would be a bad thing, since it would weaken your data model and open your data up to corruption. It is the sort of thing you might do if the number of joins in a query were impacting performance, but if your only gripe is it takes a long time to write SQL I wouldn't do it. [ June 09, 2006: Message edited by: Paul Sturrock ]