Question: Using the database shown below, write the following SQL queries: a . A query that lists all of the parts in table P ( all
Using the database shown below, write the following SQL queries:
a A query that lists all of the parts in table P all columns that supplier S carries.
b A join that lists the part and supplier information for all parts with an available
quantity of To simplify your query it is acceptable to list all columns joined
together using FOR YOUR JOIN, YOU CAN USE EITHER THE JOIN KEYWORD
OR JUST INCLUDE EACH NEEDED TABLE IN THE FROM SECTION
THE SUPPLIERSANDPARTS DATABASE :
S begintabularllrl
hline SNO & SNAME & STATUS & CITY
hline hline S & Smith & & London
S & Jones & & Paris
S & Blake & & Paris
S & Clark & & London
S & Adams & & Athens
hline
endtabular
SP
begintabularlll
hline SNO & PNO & QTY
hline hline S & P &
S & P &
S & P &
S & P &
S & P &
S & P &
S & P &
S & P &
S & P &
S & P &
S & P &
S & P &
hline
endtabular
begintabularlllcl
hline PNO & PNAME & COLOR & WEIGHT & CITY
hline hline P & Nut & Red & & London
P & Bolt & Green & & Paris
P & Screw & Blue & & Oslo
P & Screw & Red & & London
P & Cam & Blue & & Paris
P & Cog & Red & & London
hline
endtabular
Paragraph
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
