Popular ROLLUP SQL query to apply on your data to group it quickly

ROLLUP and grouping sets are two similar functions to apply on group of data. Most popular SQL query example to use ROLLUP. You can improve your SQL performance.