Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Exercise 1. Get supplier names and numbers for all suppliers who supplied part P3 and whose name begins with letter A. 2. Get supplier names

Exercise

1. Get supplier names and numbers for all suppliers who supplied part P3 and whose name begins with letter A.

2. Get supplier names and numbers for all suppliers whose name begins with letter A and who supplied parts whose name begins with setter S.

3. Get supplier names for suppliers who supplied for job J2. (Use a sub query)

4. Get supplier names for suppliers who supplied for jobs in Athens. (Use sub query)

5. Get part names for parts that are not supplied for job J3. (Use a sub query)

6. Get supplier numbers for suppliers with status lower than that of supplier S1.

7. Get supplier numbers and names for suppliers whose status is greater than status values of all suppliers in located Paris.

8. Calculate each suppliers sales quantity and get the sales persons name if the sales person supplies parts more than 1000 units in total.

9. Get job numbers for jobs whose city is first in the alphabetical list of the job cities.

10. Increase the status values of suppliers by 5 who are located in Paris.

Please hand in the modified table and the query.

11. Change the name to Hammer of parts that are Red and located in London and whose name was Screw.

Please hand in the modified table and the query.

12. Delete all jobs in Rome and all corresponding part shipments. (Please use 2 queries)

Please hand in the modified table and the query.

13. Smith moved to Adams location. Please update Smiths city but do not use the city name directly.

14. Please create a view table supplier_shipment that shows each supplier and its total shipment quantity.

15. Please try to increase Smiths total shipment by 100 in the view table you created in question 14. Then discuss what happens when you try to update the view table.

16. Please create a base table supplier_shipment that shows each supplier and its total shipments from S and SPJ tables.

17. Please repeat question 15 on the base table supplier_shipment and discuss the result.

image text in transcribed
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Server Query Performance Tuning

Authors: Sajal Dam, Grant Fritchey

4th Edition

1430267429, 9781430267423

More Books

Students also viewed these Databases questions

Question

1. Which is the most abundant gas presented in the atmosphere?

Answered: 1 week ago