Home / Expert Answers / Computer Science / provide-the-full-sql-statement-and-the-result-table-for-each-question-please-the-tables-are-attache-pa504

(Solved): Provide the full SQL statement and the result table for each question PLEASE. The tables are attache ...



Provide the full SQL statement and the result table for each question PLEASE. The tables are attached:

6. Get supplier numbers for suppliers with status lower than that of supplier located in London.

7. Calculate each supplier’s sales quantity and get the sales person’s name if the sales person supplies parts more than 1000 units in total.

8. Which supplier supplys parts the most in total?

9. Increase the status values of suppliers by 5 who are located in Paris. Please show the modified table and the query.

10. Change the name to ‘Hammer’ of parts that are Red and located in London and whose name was Screw. Please show the modified table and the query.

11. Delete all jobs in Rome and all corresponding part shipments. (Please use 2 queries) Please show the modified table and the query.

J
\begin{tabular}{|l||l||l|}
\hline j_num & jname & \multicolumn{1}{|c|}{ city } \\
\hline\( j 11 \) & Sorter & Paris \\
\hliSPJ

J \begin{tabular}{|l||l||l|} \hline j_num & jname & \multicolumn{1}{|c|}{ city } \\ \hline & Sorter & Paris \\ \hline & Punch & Rome \\ \hline & Reader & Athens \\ \hline & Console & Athens \\ \hline & Collator & London \\ \hline & Terminal & Oslo \\ \hline & Tape & London \\ \hline \end{tabular} P \begin{tabular}{|l|l|l|l||l|} \hline Q num & pname & color & weight & city \\ \hline & Nut & Red & 12 & London \\ \hline & Bolt & Green & 17 & Paris \\ \hline & Screw & Blue & 17 & Rome \\ \hline & Screw & Red & 14 & London \\ \hline & Cam & Blue & 12 & Paris \\ \hline & Cog & Red & 19 & London \\ \hline \end{tabular} S \begin{tabular}{|l|l|r||l|} \hline S num & S. name & status & city \\ \hline s 1 & Smith & 20 & London \\ \hline s2 & Jones & 10 & Paris \\ \hline s3 & Blake & 30 & Paris \\ \hline s4 & Clark & 20 & London \\ \hline s5 & Adams & 30 & Athens \\ \hline \end{tabular} SPJ


We have an Answer from Expert

View Expert Answer

Expert Answer



6. Get supplier numbers for suppliers with status lower than that of supplier located in London.


Result table:


We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe