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 S2 carries.
b. A join that lists the part and supplier information for all parts with an available
quantity of 200. 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 SUPPLIERS-AND-PARTS DATABASE :
S \begin{tabular}{|l|l|r|l|}
\hline SNO & SNAME & STATUS & CITY \\
\hline \hline S1 & Smith & 20 & London \\
S2 & Jones & 10 & Paris \\
S3 & Blake & 30 & Paris \\
S4 & Clark & 20 & London \\
S5 & Adams & 30 & Athens \\
\hline
\end{tabular}
SP
\begin{tabular}{|l|l|l|}
\hline SNO & PNO & QTY \\
\hline \hline S1 & P1 & 300\\
S1 & P2 & 200\\
S1 & P3 & 400\\
S1 & P4 & 200\\
S1 & P5 & 100\\
S1 & P6 & 100\\
S2 & P1 & 300\\
S2 & P2 & 400\\
S3 & P2 & 200\\
S4 & P2 & 200\\
S4 & P4 & 300\\
S4 & P5 & 400\\
\hline
\end{tabular}
\begin{tabular}{|l|l|l|c|l|}
\hline PNO & PNAME & COLOR & WEIGHT & CITY \\
\hline \hline P1 & Nut & Red & 12.0 & London \\
P2 & Bolt & Green & 17.0 & Paris \\
P3 & Screw & Blue & 17.0 & Oslo \\
P4 & Screw & Red & 14.0 & London \\
P5 & Cam & Blue & 12.0 & Paris \\
P6 & Cog & Red & 19.0 & London \\
\hline
\end{tabular}
Paragraph
Using the database shown below, write the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!