MS SQL Server – 90 – Standard and Nonstandard Functions MCQ

90 – Standard and Nonstandard Functions MCQ

1 / 25

1. What does the TOP clause in SQL Server allow you to do?

2 / 25

2. In SQL Server, how do you use the OFFSET/FETCH clause to skip the first 5 rows and retrieve the next 10 rows?

3 / 25

3. What is the primary purpose of the NTILE() function in SQL Server?

4 / 25

4. In SQL Server, what is the maximum number of parts or percentiles into which the NTILE() function can divide a result set?

5 / 25

5. Which SQL Server clause allows you to rotate rows into columns, creating a cross-tabulation or pivot table?

6 / 25

6. What does the STRING_AGG() function do in SQL Server?

7 / 25

7. In SQL Server, what is the primary purpose of the PIVOT clause?

8 / 25

8. What is the primary benefit of using the OFFSET/FETCH clause in SQL Server?

9 / 25

9. In SQL Server, how do you use the OFFSET/FETCH clause to retrieve the first 10 rows of a result set?

10 / 25

10. Which SQL Server function returns an approximate count of distinct values in a column?

11 / 25

11. What is the primary purpose of the UNPIVOT clause in SQL Server?

12 / 25

12. In SQL Server, how do you use the NTILE() function to divide a result set into 4 equal parts or quartiles?

13 / 25

13. Which SQL Server function returns the number of rows in a result set?

14 / 25

14. In SQL Server, what is the purpose of the ROW_NUMBER() function?

15 / 25

15. What is the main difference between the OFFSET/FETCH and TOP clauses in SQL Server?

16 / 25

16. In SQL Server, what is the purpose of the PIVOT function?

17 / 25

17. Which SQL Server function returns the total sum of values in a column?

18 / 25

18. In SQL Server, how do you use the OFFSET/FETCH clause to skip the first 5 percent of rows and retrieve the next 10 percent?

19 / 25

19. What is the primary purpose of the STRING_AGG() function in SQL Server?

20 / 25

20. In SQL Server, what is the purpose of the LEAD() function?

21 / 25

21. What does the APPROX_COUNT_DISTINCT() function provide in SQL Server compared to the COUNT(DISTINCT) function?

22 / 25

22. In SQL Server, what is the purpose of the STDEV() function?

23 / 25

23. Which SQL Server clause allows you to specify the number of rows or percentage of rows to retrieve from a result set?

24 / 25

24. What is the primary benefit of using the APPROX_COUNT_DISTINCT() function in SQL Server?

25 / 25

25. In SQL Server, what is the primary purpose of the MEDIAN() function?

Your score is

0%