Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Task 1 : Create a NONCAT table with the structure shown below. Field Type Null Key Default ITEM _ ID char ( 4 ) NO

Task 1: Create a NONCAT table with the structure shown below.
Field Type Null Key Default
ITEM_ID char(4) NO PRI NULL
DESCRIPTION char(30) YES NULL
ON_HAND int YES NULL
CATEGORY char(3) YES NULL
PRICE decimal(6,2) YES NULL
Task 2: Insert into the NONCAT table the item ID, description, number of units on hand, category, and unit price from the ITEM table for each item that is not in category CAT.
Task 3: In the NONCAT table, change the description of item ID DT12 to Dog Toy Gift Bonanza.
Task 4: In the NONCAT table, increase the price of each item in category BRD by 5%.
Multiply each price by 1.05.
Task 5: Add the following item to the NONCAT table:
ITEM_ID : FF17,
DESCRIPTION : Premium Fish Food,
ON_HAND : 10,
CATEGORY : FSH,
PRICE : 11.95.
Task 6: Delete every item in the NONCAT table for which the category is HOR.
Task 7: In the NONCAT table, change the category for item UF39 to null.
Task 8: Add a column named ON_HAND_VALUE to the NONCAT table. The on-hand value is a seven-digit number with two decimal places that represents the product of the number of units on hand and the price. Then set all values of ON_HAND_VALUE to ON_HAND * PRICE.
Task 9: In the NONCAT table, increase the length of the DESCRIPTION column to 40 characters.
Task 10: Remove the NONCAT table from the KimTay Pet Supplies database.
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

Database Systems Design Implementation And Management

Authors: Peter Rob, Carlos Coronel

3rd Edition

0760049041, 978-0760049044

More Books

Students also viewed these Databases questions

Question

What would you do if the bullies were in your classes?

Answered: 1 week ago

Question

I receive useful feedback about my performance.

Answered: 1 week ago

Question

I am encouraged to offer opinions/suggestions.

Answered: 1 week ago