Question: Using ch10_abc_markets database and invoice table, write the SQL code to select the invoice number, line number and the sum of the line price as

 Using ch10_abc_markets database and invoice table, write the SQL code to

Using ch10_abc_markets database and invoice table, write the SQL code to select the invoice number, line number and the sum of the line price as sumLP. Group the results using grouping sets of invoice number and line number to show the sumLP by invoice number order. What is the purpose of the GROUPING SETS subclause and what is its primary use

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!