Mysql Worksheet 2024-25
Mysql Worksheet 2024-25
Worksheet / MySQL
1. Create a database with your choice.
2. Create table – “Student” with following columns
Rollno
Name
Class
Address
City
Marks
Dob
3. Insert 5 records.
4. Write SQL Query to display Structure of the Table.
5. Write SQL Query to Delete a column city.
6. Write SQL Query to Add a new column city.
7. Write SQL Query to Insert different values in newly added column city.
8. Write SQL Query to Remove the record of roll number 5.
9. Write SQL Query to Display detail of all those students whose rollno is in the range of
2 to 5.
10. Write SQL Query to display name of students whose marks is less than 20.
11. Write SQL Query to display student detail whose marks is above 20 and rollno is
less than 3.
12. Write SQL Query to Change the marks of rollno 4 to 30.
13. Write SQL Query to Increase the marks of all students by 10 %.
14. Write SQL Query to Change the name of class column to standard.
15. Write SQL Query to display name of all the tables available under the current
database.
16. Write SQL Query to display name of the student whose class is not mentioned.
17. Write SQL Query to display the rollno in descending order.
18. Write SQL Query to change the name of rollno 5 to “Aakash”.
19. Write SQL Query toremove the rows of a table
20. Write SQL Query to delete the table.
21. Display number of students in each class.(considering Class column can contain
multiple classes)
22.Display class along with its number of students, whose count is greater than 5.
23. Display first four characters of name of all students.
24. Display name of students, who born on Monday.
25. Display 3rd, 4th and 5th character of Name of all students.
26. Display year of their birth (for all students)
27. Display System date and Time
28. Display todays Day.
29. Display 12 raised to the power 4 sql.
30. Display Remainder, when 14 divided by 6 using sql.
31. Display first 2 character of name in capital letter.
32. Remove the space from starting and end “ I love india “
33. Display maximum marks in Science.
34. Count the number of rows in given table.
35. Find the sum of marks , who live in jaipur.
“You are braver than you believe, stronger than you seem and smarter than you think.”