filmov
tv
SQL Interview Question- Parent Child Relationship
Показать описание
SQL Query to print child, father, and mother from relation and people table
Tables:
relation table
cid pid
101 202
566 322
875 345
people table
id name gender
101 Riya F
566 Aman M
202 Rakesh M
875 lucky M
202 Reena F
322 Raina F
345 Rohit M
322 Mohit M
345 Meena F
Output :
Child Mother Father
Riya Reena Rakesh
Aman Raina Mohit
Lucky Meena Rohith
Query :
Do Like, Comment & Subscribe :)
Got a question on the topic? Please share it in the comment section below and we will answer it for you.
#sqlinterview #sqlinterviewquestionsandanswers #sqlinterviewquestions #sql #mysql #parentchildrelationship #parent #child #relationship #interview #interviewquestions #interviewpreparation #interviewpreperationcourse #SQL #RDBMS #database #bigdata #dataengineering
Tables:
relation table
cid pid
101 202
566 322
875 345
people table
id name gender
101 Riya F
566 Aman M
202 Rakesh M
875 lucky M
202 Reena F
322 Raina F
345 Rohit M
322 Mohit M
345 Meena F
Output :
Child Mother Father
Riya Reena Rakesh
Aman Raina Mohit
Lucky Meena Rohith
Query :
Do Like, Comment & Subscribe :)
Got a question on the topic? Please share it in the comment section below and we will answer it for you.
#sqlinterview #sqlinterviewquestionsandanswers #sqlinterviewquestions #sql #mysql #parentchildrelationship #parent #child #relationship #interview #interviewquestions #interviewpreparation #interviewpreperationcourse #SQL #RDBMS #database #bigdata #dataengineering