VL2023240101049 Ast02 3
VL2023240101049 Ast02 3
VL2023240101049 Ast02 3
FUNCTIONS IN SQL
Date: 02.06.2023
1
Data For Employee Table
Mini
FName LName SSN BDate Address Sex Salary SuperSSN DepNo
t
Doug E Gilbert 123 09-JUN-1968 Chennai M 80000 NULL 1
Joyce PAN 124 07-FEB-1973 Vellore F 70000 NULL 1
Frankin T Wong 125 08-DEC-1972 Delhi M 40000 123 2
Jennifer S Wallace 564 20-JUN-1983 Chennai F 43000 123 2
John B Smith 678 09-JAN-1987 Madurai M 30000 124 1
Ramesh K Narayan 234 15-SEP-1985 Bangalore M 38000 124 3
Rahul S Ram 555 10-OCT-1973 Vellore M 50000 533 3
2
8. Find the last day and next day of the month in which each manager has joined.
9. Print a substring from the string ‘Harini’.
10. Replace the string ‘ni’ from ‘Harini’ by ‘sh’.
11. Print the length of all the department names.
12. Display the date after 10 months from current date.
13. Display the next occurrence of Friday in this month.
14. Display the project location padded with **** on left side.
15. Display the day of next Saturday.
16. Display the last date of Feb 2022
17. Count the number of days present between today and Sunday.
18. Display all the employees whose experience is greater than 14 yrs.
Group Functions