I have a X
table that has my user's data, and I need to return data related to that user to the Y
and Z
table to the client.
I can do this using JOIN
or:
SELECT attr1, attr2 FROM Y WHERE X_id = id
SELECT attr1, attr2 FROM Z WHERE X_id = id
Which is more efficient?