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

What is the Difference Between VARCHAR and NVARCHAR in SQL Server ...

What is CTE in SQL Server ?

What are the Different Recovery Models Inside SQL Server ?

Getting List of All Views in MS SQL Database

What is The Difference Between The Index Seek and Index Scan in S ...