Consider the following relation schemas Supplier(Sid, Sname, city, turnover)…

Consider the following relation schemas

Supplier(Sid, Sname, city, turnover)

Catalog (Sid, Pid, Quantity)

Part (Pid, color, cost)

SQL: Select Sname from Supplier S where 2 <= (Select count (city) from Supplier where City =S.city)

What does the following SQL query return?

  1. A.

    Get the names of suppliers who supply from a city where there is at least two more supplies

  2. B.

    Get the names of suppliers who supply from a city where there is at least one more supplier

  3. C.

    Get the names of suppliers who supply from a city where there is more than two suppliers

  4. D.

    Get the names of who supply from a city where there are at most 2 suppliers

Attempted by 95 students.

Sign up free to check your answer

Sign up free

Explore the full course: Isro

Loading lesson…