Sample data:
I can flatten out parent-child relationship using this query….
Any help…
Thanks in advance.
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.
Try the following:
I omitted the last join as your query doesn’t pull any columns from
mg5.This query at SQL Fiddle: http://sqlfiddle.com/#!3/a6f01/5