When i join 2 tables i am getting an error
select * from picture where id=(SELECT id FROM user where age= 40 )
#1242 – Subquery returns more than 1 row
What is the best way to join these 2 large data tables? I want to have all the results
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.
Replace
=byINNote, this is only “semi-joining” the two tables, i.e. you will only get pictures as results, not a picture-user relation. If you’re actually trying to do the latter, then you’ll have to
inner jointhe two tables: