Assuming tables A and B, how do I write a query that would return all columns of A and a flag indicating the presence of a corresponding child row in B
For example:
col1_a|col2_a|…|hasrowinb
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.
Perhaps the following is the “simplest” way of doing the query, while guaranteeing that there are no duplicates: