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?
- A.
Get the names of suppliers who supply from a city where there is at least two more supplies
- B.
Get the names of suppliers who supply from a city where there is at least one more supplier
- C.
Get the names of suppliers who supply from a city where there is more than two suppliers
- 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 freeLoading lesson…

