What is a ROLLUP Clause in SQL Server ?

ROLLUP clause is used to do aggregate operation on multiple levels in a hierarchy. If we want to sum on different levels without adding any new column, then we can do it easily using ROLLUP. We have to just add the WITH ROLLUP Clause in the group by clause.



You May Interest

Differences Between Stored Procedure and Function in MS SQL

Getting Rows in a Table in Random Order in MS SQL

Using CASE WHEN in MS SQL

Disable All Triggers in MS SQL Server Table

General Information List of All Allowed Databases in MS SQL Serve ...