Question: SQL Question Bookings should be archived after 2 years. Create the ARCHIVED_BOOKING table which will have the same columns as the BOOKING table and additionally

SQL Question

Bookings should be archived after 2 years. Create the ARCHIVED_BOOKING table which will have the same columns as the BOOKING table and additionally a column called ARCHIVED_DATE. Create a stored procedure to archive bookings older than 2 years (based on DATE_TO and SYSDATE). Add the old bookings to the ARCHIVED_BOOKING table and remove the old bookings from the BOOKING table.

Submit

Create statement for the ARCHIVED_BOOKING table

Listing of the Stored Procedure

Test demonstrating the execution of the archived procedure

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!