SQL Data Analyst — Medium
Key points
- GROUP BY CUBE generates all combinations, ROLLUP only a subset
- CUBE includes all possible groupings
- ROLLUP creates a hierarchical structure
- CUBE is more comprehensive than ROLLUP
Ready to go further?
Related questions
