write sql statements to list all columns for all

Post New Homework

1) Find tables in page 237, 238 and 239. Write SQL CREATE TABLE and SQL INSERT statements data for

1. SQL statements for Table 1 - QACS CUSTOMER
2. SQL statements for Table 2 - QACS EMPLOYEE
3. SQL statements for Table 3 - QACS ITEM
4. SQL statements for Table 4 - QACS SALE

2) Write SQL statements to list all columns for all tables.

3) Write an SQL statement to list ItemID and ItemDescription for all items that cost $1000 or more.

4) Write an SQL statement to list LastName, FirstName, and Phone of the customer who made the purchase with SaleID 1. Use a subquery.

5) Write an SQL statement to list LastName, FirstName, and Phone of the customers who made the purchase with SaleIDs 1, 2, and 3. Use a subquery.

6) Write an SQL statement to list LastName, FirstName, and Phone of customers who have made at least one purchase with SubTotal greater than $500. Use a subquery.

7) Write an SQL statement to list LastName, FirstName, and Phone of customers who have purchased an item that has an ItemPrice of $500 or more. Use a subquery.

8) Write SQL CREATE TABLE statement for table VENDOR (p. 239) and insert the data (the first three rows only) into the VENDOR table.

9) Write an SQL statement to modify the vendor with CompanyName of Linens and Things to Linens and Other Stuff.

Post New Homework
Captcha

Looking tutor’s service for getting help in UK studies or college assignments? Order Now