0% found this document useful (0 votes)
50 views

SQL Queries TILL WHERE

This document lists 35 SQL queries related to retrieving data from database tables: 1) Questions ask to retrieve full tables, specific columns, data for certain employees or roles, data based on conditions like salary or date. 2) Queries include retrieving the name and hire date of employees, details of clerks and their salaries, and employees who joined after or between certain dates. 3) The questions cover basic selects as well as more advanced queries with joins, where clauses, pattern matching, and aggregations.

Uploaded by

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

SQL Queries TILL WHERE

This document lists 35 SQL queries related to retrieving data from database tables: 1) Questions ask to retrieve full tables, specific columns, data for certain employees or roles, data based on conditions like salary or date. 2) Queries include retrieving the name and hire date of employees, details of clerks and their salaries, and employees who joined after or between certain dates. 3) The questions cover basic selects as well as more advanced queries with joins, where clauses, pattern matching, and aggregations.

Uploaded by

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

SQL Queries

1. What is Database? Types of Database.


 

2. Difference between DBMS and RDBMS


 

3. WAQTD the complete data of a table.


 

4. WAQTD the data of a particular column from a


 

table.
5. WAQTD the data from multiple columns of a table.
 

6. WAQTD the employee’s name as name and hire


 

date as DOJ   for employees.


7. WAQTD the name and annual salary of the
 

employees in the emp table.


8.          WAQTD the daily wage of the employees.
9.         WAQTD the details of all CLERKS in the emp
table.
10.          WAQTD the name and salary of all salesmen.
11. WAQTD the details of all employees whose
        

salary is more than 2500.


12. WAQTD the details of the employees who
        

joined the company after 3rd jan 85.


13. WAQTD the details of the employees whose
        

annual salary is more than 10000.


14. WAQTD the statement like “ SMITH EARNS
        

THE SALARY 800 EVERY MONTH.”  (||)


15. WAQTD the details of all department 20
        

employees.
16. WAQTD the details of all clerks from
        

department 20.
17. WAQTD the details of all employees from
        

department 10 having salary more than 1000.


18.  WAQTD the details of all managers from
        

department 30 joined before 22-05-86.


19. WAQTD the details of employees from
        

department 10 and 30 having salary more than


1200.
20. WAQTD the date of joining of all clerks and
        

managers from department 10 and 30.


21. WAQTD the details of employees who are not 
        

managers.
22. WAQTD the details of employees who are
        

neither salesmen nor clerks.


23. WAQTD name of all clerks and managers
        

accept from dept 20.


24. WAQTD the details of all clerks and salesman
        

who joined the company after 18-01-85.


25. WAQTD the name and dept of employees from
        

department 10,20,30 and 40.


26. WAQTD the names of all clerks from deptno
        

10,20,30 and 50.


27. WAQTD the details of the employees who join
        

the company after 11-01-82 and before 11-02-89.


28. WAQTD the details of all mangers and
        

salesman  who annual salary is between 10000 to


20000.
29. WAQTD the details of all employees whose
        

name starts with ‘S’


30. WAQTD the details of all clerks, salesmen and
        

managers from whose name ends with ‘S’.


31. WAQTD the details of all employees whose
        

name has 5 character


32. WAQTD the details of all employees whose
        

name second last character is ‘T’


33. WAQTD the details of the employees who
        

don't have comm.


34.  WAQTD the details of the employees who
        

joined the company in the year 82.


35. WAQTD the details of the employees who
        

joined in the month ‘DEC’

You might also like