Question: The following problems are based on the northwind database you have been using for the projects. Each problem should be solved by a single SQL
The following problems are based on the northwind database you have been using for the projects. Each problem should be solved by a single SQL statement. Submit a PDF file with your answers.
Create a table named SpanishOrders that contain the OrderID, OrderDate, CustomerID, CompanyName of customer of all orders made by a customer from Spain;
Write an INSERT statement that adds a row to the Shippers table with the following values: ShipperID: CompanyName: DHL Phone:
Write an INSERT statement to add all suppliers to the Customers table. For each supplier, copy the value of SupplierID to CustomerID, and those of the other columns to the ones with the same name in the Customers table.
Write a DELETE statement that deletes all rows of the Orders table that satisfy the following condition: the ShipCountry is USA and the freight is lower than $
Write a DELETE statement that deletes all rows of the Orders table that satisfy the following condition: the order is made by a customer from Germany. Hint: need to do a JOIN
Write an UPDATE statement that modifies the Suppliers table. Change the Region to Unknown for all the suppliers from USA.
Write an UPDATE statement that modifies the Orders table by doubling the freight for all orders made by a customer with the ID TOMSP
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
