Question: In SQL (Oracle), write a script that includes an anonymous block that performs the following: -Prompts the user for a date in the future (SQL

In SQL (Oracle), write a script that includes an anonymous block that performs the following:

-Prompts the user for a date in the future (SQL Plus commands)

-Calculates the difference between that date and the current date (storing in an (appropriate INTERVAL data type)

-Converts the INTERVAL results into a CHAR data type

-Stores the number of years in a variable

-Stores the number of months in a variable

-Displays a message similar to the following: "There is a difference of 5 years and 3 months"

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!