MS SQL Server – 88 – CUBE and ROLLUP MCQ

88 – CUBE and ROLLUP MCQ

1 / 25

1. What is the primary purpose of the CUBE operator in SQL Server?

2 / 25

2. Which operator generates a result set that includes all possible combinations of grouped data, including subtotals and grand totals?

3 / 25

3. What does the ROLLUP operator do in SQL Server?

4 / 25

4. Which SQL Server operator generates a result set that includes subtotals but not grand totals?

5 / 25

5. In SQL Server, which operator is used to group data based on multiple columns in a single query?

6 / 25

6. What is the result of applying the GROUP BY clause without any grouping functions in SQL Server?

7 / 25

7. What is the primary purpose of the GROUPING function in SQL Server?

8 / 25

8. In SQL Server, what does the GROUPING function return for a grouped column that is part of the grouping set?

9 / 25

9. Which function in SQL Server is used to calculate the average of a set of values?

10 / 25

10. What is the purpose of the HAVING clause in SQL Server?

11 / 25

11. Which SQL Server function returns the total number of rows in a result set, including rows with NULL values?

12 / 25

12. In SQL Server, what is the result of applying the COUNT(*) function to a grouped result set?

13 / 25

13. Which SQL Server function returns the highest value in a set of values?

14 / 25

14. What does the GROUPING_ID() function in SQL Server return?

15 / 25

15. In SQL Server, which operator generates a result set that includes both subtotals and grand totals?

16 / 25

16. What is the primary purpose of the GROUPING SETS operator in SQL Server?

17 / 25

17. In SQL Server, how can you use the GROUPING SETS operator to specify multiple grouping sets in a single query?

18 / 25

18. Which SQL Server function returns the sum of a set of values?

19 / 25

19. In SQL Server, what is the primary purpose of the GROUP BY clause?

20 / 25

20. What is the result of applying the GROUPING function to a non-grouping column in SQL Server?

21 / 25

21. In SQL Server, what does the GROUPING function return for a grouped column that is not part of the grouping set?

22 / 25

22. What is the purpose of the GROUPING SETS operator in SQL Server?

23 / 25

23. Which SQL Server function returns the lowest value in a set of values?

24 / 25

24. In SQL Server, what does the GROUPING_ID() function return for a non-grouping column?

25 / 25

25. In SQL Server, what does the GROUPING SETS operator do when used in conjunction with GROUP BY?

Your score is

0%