0% found this document useful (0 votes)
32 views2 pages

Assingment Question

Uploaded by

bhoomikanekal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views2 pages

Assingment Question

Uploaded by

bhoomikanekal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Write an SQL query to fetch “FIRST_NAME” from the Worker table using the alias name <WORKER_NAME>

Write an SQL query to fetch “FIRST_NAME” from the Worker table in upper case.
Write an SQL query to fetch unique values of DEPARTMENT from the Worker table.
Write an SQL query to print the first three characters of FIRST_NAME from the Worker table.
Write an SQL query to find the position of the alphabet (‘a’) in the first name column ‘Amitabh’ from the Worker table.
Write an SQL query to print the FIRST_NAME from the Worker table after removing white spaces from the right side.
Write an SQL query to print the DEPARTMENT from the Worker table after removing white spaces from the left side.
Write an SQL query that fetches the unique values of DEPARTMENT from the Worker table and prints its length.
Write an SQL query to print the FIRST_NAME from the Worker table after replacing ‘a’ with ‘A’.
Write an SQL query to print the FIRST_NAME and LAST_NAME from the Worker table into a single column COMPLETE_NAME.
Write an SQL query to print all Worker details from the Worker table order by FIRST_NAME Ascending.
Write an SQL query to print all Worker details from the Worker table order by FIRST_NAME Ascending and DEPARTMENT Desc
Write an SQL query to print details for Workers with the first names “Vipul” and “Satish” from the Worker table.
Write an SQL query to print details of workers excluding first names, “Vipul” and “Satish” from the Worker table.
Write an SQL query to print details of Workers with DEPARTMENT name as “Admin”.
Write an SQL query to print details of the Workers whose FIRST_NAME contains ‘a’.
Write an SQL query to print details of the Workers whose FIRST_NAME ends with ‘a’.
Write an SQL query to print details of the Workers whose FIRST_NAME ends with ‘h’ and contains six alphabets.
Write an SQL query to print details of the Workers whose SALARY lies between 100000 and 500000.
Write an SQL query to print details of the Workers who joined in Feb 2021.
Write an SQL query to fetch the count of employees working in the department ‘Admin’.
Write an SQL query to fetch worker names with salaries >= 50000 and <= 100000.
Write an SQL query to fetch the number of workers for each department in descending order.
Write an SQL query to print Worker name who are Managers.
Write an SQL query to fetch count of duplicate records from worker table.
Write an SQL query to show only odd rows from a table.
Write an SQL query to show only even rows from a table.
Write an SQL query to show the top 3 salary from worker table
Write an SQL query to determine the nth (say n=5) highest salary from a worker table.
Write an SQL query to fetch the list of employees with the same salary from worker table.
Write an SQL query to fetch the departments that have less than five people in them.
Write an SQL query to show all departments along with the number of people in there.
Write an SQL query to fetch three max salaries from a table.
Write an SQL query to fecth the worker name who got the bonus
Write an SQL query to fecth the department total bonus
Write an SQL query to fetch worker title for each woker
OMPLETE_NAME. A space char should separate them.

DEPARTMENT Descending.

You might also like