I have three tables:
A_details
B_details
C_details
What would be more efficient: three select queries, or a single query with a join?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This will greatly depend on the schema, and if you have the correct indexes on the tables.
I typically prefer to let the database hadle joins, instead of trying to do it in code, the database is better at this.
The key here is if you have the correct indexes for the joins to read efficiently.
Have a look at Database index