Question: Write a PL/SQL script that prompts the user to enter a car serial number and displays:[USE SI.Car table 5 Marks] The name of the owner
Write a PL/SQL script that prompts the user to enter a car serial number and displays:[USE SI.Car table 5 Marks]
The name of the owner if the car has an owner
'Car has no owner' if the car does not have an owner.
'There is no such car' if the serial number entered by the user does not match any records in the car table
Use Oracle's NO_DATA_FOUND build in exception to display the last message.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
