Friday, August 28. 2009Rules for SQL programming, #48Trackbacks
Trackback specific URI for this entry
No Trackbacks
Comments
Display comments as
(Linear | Threaded)
I'm a recent convert of explicit JOIN statements -- it's a much clearer separation from the WHERE clause conditions IMHO.
But apart from the confusions, are there any performance issues? Correct me if I'm wrong, but the "," specifies a CROSS JOIN, but modern databases should be able to optimise it to use INNER JOINS given sufficient conditions in the WHERE clause right? Or are there exceptions?
No, performance-wise they should work the same as the equivalent query written the other way, I believe.
It's a matter of clarity rather than performance. |
My Links etcCalendar
QuicksearchArchivesCategoriesBlog Administration |
|||||||||||||||||||||||||||||||||||||||||||||||||