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