Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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
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

Visual Basic6 Database Programming

Authors: John W. Fronckowiak, David J. Helda

1st Edition

0764532545, 978-0764532542

More Books

Students also viewed these Databases questions

Question

Define the concept of evolved psychological mechanism.

Answered: 1 week ago

Question

2. What are the components of IT infrastructure?

Answered: 1 week ago