I want to know what is difference between ROLLUP operator and CUBE operator in SQL Server.
Thank you.
ROLLUP operator and CUBE operator in SQL Server
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
VulpesRank #55 · 29.2K reputationPosted Aug 6, 2012, 2:21 AM EDT
http://msdn.microsoft.com/en-us/library/ms189305(SQL.90).aspx
Akkiraju IvaturiRank #473 · 5.3K reputationPosted Aug 6, 2012, 3:37 PM EDT
CUBE: generates a result set that represents aggregates for all combinations of values in the selected columns
ROLLUP: generates a result set that represents aggregates for a hierarchy of values in the selected columns
More info can be had from the following link:
http://www.sqlhub.com/2009/05/use-of-cube-and-rollup-difference-of.html