Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Determine the last used category Id 2. Create a new SEQUENCE for the Categories table. Have the new sequence start at the next available

1. Determine the last used category Id 2. Create a new SEQUENCE for the Categories table. Have the new sequence start at the next available multiple of 10 and increment by 10s 3. Add a single SELECT statement to confirm the sequence exists by selecting it from the meta data table USER_SEQUENCES 4. Add an INSERT statement to add a new category to the categories table using the following data: Primary key - use the sequences next value Description Ski Equipment 5. Add another INSERT statement to add another category using the following data: Primary key - use the sequences next value Category Football Equipment 6. Add a Select statement to the script to retrieve all data for the 2 new categories, plus your name (not mine) as a constant e.g.: 7. Add a single Update statement to the script to update the Ski Equipment category so the description is now Alpine Equipment 8. Issue the same select as in step 6 again to show the new postal codes 9. Add a single DELETE to the script to remove the 2 new categories 10.Issue a SELECT to dump out the remaining categories (should be 6 categories) 11. Add a drop to the script to remove the sequence created in step 2 12. Repeat the code from the SELECT statement from step 3 showing the meta data again (should be empty)

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

Students also viewed these Databases questions