subject

Consider the following schema:

Suppliers ( sid: integer, sname: string, address: string )

Parts ( pid: integer, pname: string, color: string )

Catalog ( sid: integer, pid: integer, cost: real )

The Catalog relation lists the prices charged for parts by Suppliers.

Write the following queries in SQL.

1. Find the pnames of parts for which there is some supplier.

2. Find the snames of suppliers who supply every part.

3. Find the snames of suppliers who supply every red part.

4. Find the sids of suppliers who supply only red parts.

5. Find the sids of suppliers who supply a red part and a green part.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 20:00
How much current flows through the alternator brushes? a. 2–5 a b. 25–35 a, depending on the vehicle c. 5–10 a d. 10–15 a
Answers: 2
question
Computers and Technology, 24.06.2019 21:30
What need most led to the creation of the advanced research projects agency network? darpa wanted scientists to be able to collaborate and share research easily. darpa wanted american and russian politicians to be able to communicate. darpa wanted astronauts to be able to contact nasa and the white house. darpa wanted factory owners to be able to coordinate supply chains.
Answers: 1
question
Computers and Technology, 25.06.2019 07:00
Quick styles allow you to format an entire document quickly? t/f
Answers: 1
question
Computers and Technology, 25.06.2019 08:10
Which of the following is an example of an input device? a barcode readeran organic light-emitting diodean inkjet printera cathode ray tube
Answers: 1
You know the right answer?
Consider the following schema:

Suppliers ( sid: integer, sname: string, address: string...
Questions
question
Health, 17.11.2020 01:00
question
Mathematics, 17.11.2020 01:00
question
Mathematics, 17.11.2020 01:00
question
Geography, 17.11.2020 01:00
question
Arts, 17.11.2020 01:00
question
Mathematics, 17.11.2020 01:00
question
Mathematics, 17.11.2020 01:00
question
Mathematics, 17.11.2020 01:00
Questions on the website: 13722363