Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hello, I have a question that I would like to ask you today with SQL. I have a database as I mentioned in the attachment.

Hello, I have a question that I would like to ask you today with SQL. I have a database as I mentioned in the attachment. We can think of it as a small-scale family family tree. A family tree of family relationships that includes one's mother, father, grandfather, grandmother, uncles, aunts, and cousins. For example, the person with id number 6 is actually the paternal cousin of the person with id number 24. The person with id number 6 becomes his uncle's son.

How can I extract this with a query? Additionally how can I list all cousins of the person with id 6 like this?

I can't upload images to Chegg because it gives me an error. Screenshots link: https://file.io/UfYVdCT3oHXd

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The World Wide Web And Databases International Workshop Webdb 98 Valencia Spain March 27 28 1998 Selected Papers Lncs 1590

Authors: Paolo Atzeni ,Alberto Mendelzon ,Giansalvatore Mecca

1st Edition

3540658904, 978-3540658900

More Books

Students also viewed these Databases questions

Question

My opinions/suggestions are valued.

Answered: 1 week ago