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 UNION and UNION ALL in SQL Server ...

What is Central Management in SQL Server ?

What are Replication and Database Mirroring in SQL Server ?

Getting the Id of MS SQL Server Last Entered Record

How to Rebuild the Master Database in SQL Server ?