Question: Database technologies 1. Implement a ROLLUP operation as a SQL stored procedure. Given a list of attributes, ROLLUP uses GROUP BY by successively omitting last
1. Implement a ROLLUP operation as a SQL stored procedure. Given a list of attributes, ROLLUP uses GROUP BY
by successively omitting last column from the GROUP BY specification. For example, if the list of attributes in the GROUP BY clause is (year, month, date) then ROLLUP will generate GROUP BY based on ((year, month,date), (year, month), (year), ()). Your stored procedure should work for a maximum of 5 attributes, any input higher than 5 must mention that ROLLUP is limited to 5 attributes. (1.5%)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
