logo

Crowdly

Browser

Add to Chrome

Suppose we have the following schema: , , describing, respectiv...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Suppose we have the following schema:

,

,

describing, respectively, people, types of cars, and cars and their owners. The data corresponding to these tables is as follows:

 

IDNAME
1Madeleine
2Alice
3Nalini

 

CarTypeIdType
1Small
2Medium
3Large

 

CarIdOwnerIdCarTypeIdCarName
111Nano
222Santro
    

 

Select the correct returned tuple of the following SQL query:

select distinct Q.name from

    (select P.name, C.carName, CT.carTypeId

    from Person P

    left outer join Car C on (C.ownerId = P.id)

    inner join CarType CT on (C.carTypeId = CT.carTypeId)) as Q

More questions like this

Want instant access to all verified answers on moodlenew.iitd.ac.in?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome