sql functions
sql functions
XII IP
1. Write the output of the following SQL queries:
2. There is a column Salary in a Table EMPLOYEE. The following two statements are giving different
outputs. What may be the possible reason?
5. Write SQL function that will display the day of month of given date.
6. Write a SQL functions to perform the followings-
a) To display position of the first occurrence of substring in a string.
b) To removes trailing spaces in the string/column
c) To display numeric month from the date passed
d) To display the date and time at which the function executes
7. What is the difference between COUNT() and COUNT(*)?