- List all employees who have ‘i’ as second occurrence without using like and with using like command.
- List all employees who have ‘a’ and ‘e’.
- List all employees who have a vowel in their name.
- Display list of employees whose salary is greater than commission.
- List all employees whose month of hire date is jan.
- List all employees who have atleast 2 A’s in their name.Dont use like.
- List all employees whose salary divided by rounded commission is greater than 5.
- List all employees with name scott in uppercase,lowercase, spaces etc in all formats.
- List all employees who doesn’t have salary ie null.
- List all employees whose hire date is greater than 1984.
- List all employees in uppercase, lowercase and initcap.
- Display first two letter of employee name.
- Display all employees whose names start with ‘A’.
- Display all employees who have 2’nd alphabet as ‘A’ intheir names.
- Display employee name, salary, commission from emp,and if commission is null, make it as 100.
- Pad all employees with ‘+’.
- Get sum of salary and commission for dept number 10.
- Get sum of salary and commission and divide it by’10.5’.
- Give floor and ceil value for above.
- Display all the records of emp table whose job is either ‘MANAGER’ or ‘manager’.
Wednesday, October 22, 2008
SQL Practice Test1
Labels:
SQL practice
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment