Thanks to visit codestin.com
Credit goes to www.scribd.com

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

Practical File

The document contains 25 queries to be completed in MySQL. It involves creating databases and tables, inserting records, displaying data, modifying structures and data, joining tables, filtering on conditions, sorting, grouping, and updating records.

Uploaded by

aman yadav
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)
34 views2 pages

Practical File

The document contains 25 queries to be completed in MySQL. It involves creating databases and tables, inserting records, displaying data, modifying structures and data, joining tables, filtering on conditions, sorting, grouping, and updating records.

Uploaded by

aman yadav
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/ 2

Practical File Questions

Complete these 25 given queries in Mysql, paste the query and result in MSWord document.

Q1. Create a database say School in mysql?

Q2. How to go to a particular database say school?

3. Create a table Dept having fields Deptno as int type, Dname as varchar type and Loc
Varchar type. Consider Deptno as primary key.

4. Insert record in Dept table

5. Create a table Employ having following details:

Table name: Employee

Field Name Data type Length Constraint

Eno Integer Primary key

Ename Varchar 15 Not Null

Gender Char 1

Doj Date

Salary Decimal 10,2

Deptno int Foreign key

Q6. Display structure of the table Employee

Q7. Insert 5 records in Employee table


8. Display all the records in employee table

9. Display Eno, Ename from employee table only for Gents Employee

10. Display those ename whose salary between 40000 to 60000 both inclusive.

11. Display those record whose name starts with A

12. Display those Ename whose name 3rd char is r.

13. Display all the records in ascending order of Ename

14. Display those records in Descending order of Fees

15. Add a column City in table Employee

16. Delete column City.

17. Display Gender wise Number of employees

18. Display all the records whose salary is Null

19. Make Deptno as Foreign key

20. Display all the records of dept table

21. Display Eno, Ename, Salary, Deptno, Dname

22. Display Eno, Ename, Salary, Deptno, dname for those employee who gets salary more
than 50000.

23. Display those employees who joined after 01.01.2011

24. Delete those records who earn 0(zero)

25. Increase salary of all employee by 30%

You might also like