Question: 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
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
Get step-by-step solutions from verified subject matter experts
