Lab Assignment Consider The Following Tables: Sample Table - Worker
Lab Assignment Consider The Following Tables: Sample Table - Worker
Q-5. Write an SQL query to print the FIRST_NAME from Worker table
after removing white spaces from the right side.
Ans.
Q-9. Write an SQL query to print the FIRST_NAME from Worker table
after replacing ‘a’ with ‘A’.
Q-11. Write an SQL query to print all Worker details from the Worker
table order by FIRST_NAME Ascending.
Select * from Worker order by FIRST_NAME asc;
Q-12. Write an SQL query to print details for Workers with the first
name as “Vipul” and “Satish” from Worker table.
Q-15. Write an SQL query to print details of the Workers who have
joined in Feb’2014.
Q-17. Write an SQL query to retrieve worker names with salaries >=
50000 and <= 100000.
FROM worker
WHERE WORKER_ID IN
Q-18. Write an SQL query to retrieve the no. of workers for each
department in the descending order.
GROUP BY DEPARTMENT