Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
|
Quote:
|
Not sure, for it has been a while since I last used this.
|
It's right, and for the record, it's a jointed query between the 2 tables.
Quote:
|
do i use a join or do a double query?
|
There is no absolute truth.
Sometime, a big query will work faster if you break it in several smaller parts.
Sometimes, it's better to use a whole lot of joints.
In the end, your db schema will be a big part of the choice of 1 road or the other.
It's what one of my colleagues refer as "galactic joins" .
Ie: you have more then 30 tables joined, and you don't understand where you came from nor where you are headed, and not really sure of what you want to do anymore.
__________________
Only a biker knows why a dog sticks his head out the window.
|