Question: Using a Record Variable A Brewbean s application page is being developed for employees to enter a ID Product number and view price, quantity ,
Using a Record Variable
A Brewbeans application page is being developed for employees to enter a ID Product number
and view price, quantity and options etc information for the basket. This program needs to print all column values from the bbbasketitem table. You can ask an IDPRODUCT value from end user or : assign as
Hint : DECLARE record composite variable via ROWTYPE of bbbasketitem table
SELECT into record
From bbbasketitem
WHERE must have idproduct &var user input to ask which IDPRODUCT
As you notice, there are two records for IDPRODUCT Then you need to find a way to print both record one at timeyou can use basic loop to fetch each records one by one by usong counter or
Make sure there are different basketitems records Select maxidbasketitems for IDPRODUCT and do perform FOR LOOP FOR i IN and print fields for each records
Up to you
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
