You are on page 1of 1

GLCA SQL Week3 Day 1 Practice Exercise

1. What is the role of the "CAST" function in SQL and how does it help with
formatting and conversion of data?

2. How many formatting and conversion functions are available in SQL, and
what are they used for?

3. What are the differences between the mathematical functions "ln," "log10,"
"log2," and "exp"?

4. What is the difference between the functions "round," "ceil," "floor," and
"truncate" in SQL?

5. What is the difference between sqrt, mod, div, power functions in sql

6. How can you determine the sign of a value in SQL, and what is the "abs"
function used for?

7. How to check the minimum value for row-wise and column-wise data in sql?
[Hint: lowest, min]

8. How to check the maximum value for row-wise and column-wise data in sql?
[Hint: greatest, max]

9. What is the difference between coalesce and ifnull functions in sql?

10. What is the flow of the execution for sorting columns in sql?

11. How to sort data based on individual columns, including the default sorting
method and custom sorting options in SQL?

12. What is the field function in SQL and how is it used in the ORDER BY clause
to sort data based on custom sorting options?

Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution
prohibited.

You might also like