0% found this document useful (0 votes)
31 views14 pages

SQL Quary Project

The document contains examples of SQL queries to perform common operations on a database table like create, insert, select, update, delete and show structure. These include queries to select data based on conditions, aggregate functions, sorting and joining data from multiple tables.

Uploaded by

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

SQL Quary Project

The document contains examples of SQL queries to perform common operations on a database table like create, insert, select, update, delete and show structure. These include queries to select data based on conditions, aggregate functions, sorting and joining data from multiple tables.

Uploaded by

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

1. Query to Create Table.

(OUTPUT)
2. Query to Insert Values In a Table.

(OUTPUT)
3. Query to Display values in a Table

(OUTPUT)

4. Query to Select Data from


table where Department is IT.

(OUTPUT)
5. Query to Select Data from table
where Gender is Female &
Department is IT.

(OUTPUT)

6. Query to Select Name from table


where Salary Between 3000 and 5000.

(OUTPUT)
7. Query to Select Data from table
where EID is 03.

(OUTPUT)

8. Query to Select Distinct


Department from table.

(OUTPUT)
9. Query to Select NAME, GENDER,
EID where Department is IT and
Gender is FEMALE from table.

(OUTPUT)

10. Query to Select AVERAGE SALARY


From table group by GENDER.

(OUTPUT)
11. Query to Select ENAME & EID
From table where ENAME ends with I.

(OUTPUT)

12. Query to Select Data From Table


Where ENAME starts with ‘M’.

(OUTPUT)
13. Query to Select Minimum Salary
From table.

(OUTPUT)

14. Query to Select Maximum Salary


From table.

(OUTPUT)
15. Query to count Number of Employees
From table.

(OUTPUT)

16. Query to count Number of Employees


Group by Gender From table.

(OUTPUT)
17. Query to Increase salary of
Employees by 3000 From table.

(OUTPUT)

When Salary
increased by 3000.

Initial Salary
18. Query to select Sum of Salary
& Group by Department from table.

(OUTPUT)

19. Query to Delete Records of Employee


Whose EID is 2 from table.

(OUTPUT)
20. Query to Add new column in table
Employee.

(OUTPUT)
21. Query to Delete table Employee.
To Delete Records Present in Table.

To Delete Table.

To Check Records in Table.

To Check Table in Database.


22. Query to Show Table Structure.

(OUTPUT)

You might also like