Is it possible to join the results of a SELECT with another table.
Like this:
SELECT * FROM table1 LEFT OUTER JOIN (SELECT * FROM table 2)
I know I need to link the column but am not sure how. Is this possible?
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.
You need to know what columns you are joining on. Assuming they are called
IDin both tables, something like this would work:Note that rather than using
*, you should name the columns you need explicitly. This will give a more efficient query if you do not need all of the data, and will also prevent duplicate column names from being returned.