Assign 02
Assign 02
2. Write a query to fetch Student and their Department Based on City If data is in different
tables namely student table and department table:
3. Write an SQL query to fetch “FIRST_NAME” from Worker table in upper case
4. Write an SQL query to fetch unique values of DEPARTMENT from Worker table.
5. Write an SQL query to find the position of the alphabet (‘a’) in the first name column
‘Amitabh’ from Worker table.
6. Write an SQL query to print the FIRST_NAME from Worker table after replacing ‘a’ with ‘A’.
7. Write an SQL query to print all Worker details from the Worker table order by FIRST_NAME
Ascending.
8. Write an SQL query to print details for Workers with the first name as “Vipul” and “Satish”
from Worker table.
9. Write an SQL query to print details of the Workers whose SALARY lies between 100000 and
500000.
10. Write an SQL query to print details of the Workers who have joined in Feb’2014.
11. Write an SQL query to fetch worker names with salaries >= 50000 and <= 100000.
SELECT name from Worker where salary >=50000 and salary <= 100000