Question: 1. [4 marks] Write a query to list a summary of customer balance for those customers who made purchase. More specifically, the summary should include

 1. [4 marks] Write a query to list a summary ofcustomer balance for those customers who made purchase. More specifically, the summary

1. [4 marks] Write a query to list a summary of customer balance for those customers who made purchase. More specifically, the summary should include the minimum balance, maximum balance, and average balance. 2. [4 marks] Write a query to list the most popular product's p_code, p_descript, vendor's name (v_name) and contact (v_contact). Product's popularity is defined by the total quantity that have already been sold [Hint: you can use view] 3. [4 marks] Write a PL/SQL anonymous block to list those customers' full name who has 0 balance. [Hint: use cursor] 4. [3 marks] Write a PL/SQL anonymous block to calculate the subtotal of an invoice. Initialize a scalar variable to a specified invoice. 1. [4 marks] Write a query to list a summary of customer balance for those customers who made purchase. More specifically, the summary should include the minimum balance, maximum balance, and average balance. 2. [4 marks] Write a query to list the most popular product's p_code, p_descript, vendor's name (v_name) and contact (v_contact). Product's popularity is defined by the total quantity that have already been sold [Hint: you can use view] 3. [4 marks] Write a PL/SQL anonymous block to list those customers' full name who has 0 balance. [Hint: use cursor] 4. [3 marks] Write a PL/SQL anonymous block to calculate the subtotal of an invoice. Initialize a scalar variable to a specified invoice

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!