Question: Write PL/SQL Procedure/Function that accepts 4 parameters, 2 integers representing product ID, and 2 numbers representing their prices. The stored procedure/function determines which product has

Write PL/SQL Procedure/Function that accepts 4 parameters, 2 integers representing product ID, and 2 numbers representing their prices. The stored procedure/function determines which product has the higher price and returns the ID of that product. If you write stored procedure, you need an extra parameter of type integer to store the returning value from the stored procedure. If prices are the same, then the stored procedure returns 1. It returns -1 if an error occurs.

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!