Question: Task 8 : Using the INVOICE _ TOTAL VIEW write and execute the command to retrieve the invoice number and invoice total for only those

Task 8: Using the INVOICE_TOTAL VIEW write and execute the command to retrieve the invoice number and invoice total for only those orders totaling more than $250.
Task 9: Repeat Task 8 without using the INVOICE_TOTAL VIEW.
Task 10: List all the tables contained within the system catalog, but only display the first 10 records with a TABLE_TYPE of SYSTEM VIEW.
Task 11: List all the columns contained within the system catalog, but only display the first 11 records that are in the KimTay TABLE_SCHEMA.
Task 12: List all the views contained within the system catalog, but only display the first 12 records.
Task 13: Write the command to display only tables within the system catalog that have the KimTay TABLE_SCHEMA and are of the type BASE TABLE. Display only the following columns: TABLE_SCHEMA, TABLE_NAME, TABLE_TYPE.
Task 14: Create an index named ITEM_INDEX1 on the ITEM_ID column in the INVOICE_LINE table.
Task 15: Create an index named ITEM_INDEX2 on the CATEGORY column in the ITEM table.
Task 16: Create an index named ITEM_INDEX3 on the CATEGORY and LOCATION columns in the ITEM table.
Task 17: Create an index named ITEM_INDEX4 on the CATEGORY and LOCATION columns in the ITEM table. List categories in descending order.
Task 18: Delete the index named ITEM_INDEX3.
Task 19: List every table that you have created thus far. Display the TABLE_SCHEMA and TABLE_NAME columns.
Task 20: List every column in the ITEM table and its associated data type.
Task 21: Alter the INVOICE_LINE table by adding the INVOICE_NUM column as a foreign key referencing the INVOICE_NUM column in the INVOICES table. From The Textbook of A Guide to SQL 10th edition
 Task 8: Using the INVOICE_TOTAL VIEW write and execute the command

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 Databases Questions!