in reply to Re^2: How to interpolate sql-output
in thread How to interpolate sql-output
The other table is simply not required. It contains no information that the inner table does not have. The only benefit it might have is id is already unique, but at the cost of loading another table and doing a join, it probably hurts more than it helps.
Queries get more and more complicated over time as they are used for more and more things. This adds complexity which makes understanding the queries take longer and hampers their revision. The simpler the query, the easier on the programmer and the database's optimizer.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How to interpolate sql-output
by Seq (Novice) on Jan 14, 2015 at 23:15 UTC | |
by chacham (Prior) on Jan 15, 2015 at 00:25 UTC | |
by Seq (Novice) on Jan 15, 2015 at 01:17 UTC | |
by chacham (Prior) on Jan 15, 2015 at 02:39 UTC | |
by Seq (Novice) on Jan 15, 2015 at 03:39 UTC | |
|