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

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!