| 1. |
Classify various built-in functions in SQL. |
|
Answer» The built-in functions are classified as Single row functions and Group functions. The single-row functions are of four types. They are numeric functions, character or text functions, date functions, and conversion functions. 1. Numeric functions: b. CEIL and FLOOR functions - CEIL returns the smallest integer greater than or equal to its argument. FLOOR does just the reverse, returning the largest integer equal to or less than its argument. c. POWER function – To raise one number to the power of another, use POWER. In this function the first argument is raised to the power of the second. d. SORT function – The function SORT returns the square root of an argument. 2. Character or text functions: 3. INITCAP function – capitalizes the first letter of a word and makes all other characters lowercase. 3. Date functions: 3. MONTHS_BETWEEN function – to know how many months fall between month x and 4. Conversion functions:
The group functions are:
|
|