Mysql Query Solutions
Mysql Query Solutions
Q1. To create a database. (You can give any meaningful name to your database)
Q2. To create STUDENT table with the StudentID, Class, Section, Gender,
Name, DOB and Marks as attributes where the StudentIDis the Primary Key.
Q5. To display StudentID, Name and Marks of those students who are scoring
marks more than 50.
Q6. To find the average of marks from the STUDENT table
Q7. To find the number of Students who are from section ‘A’
Q8. To display the information of all the Students, whose name starts with
‘AN’ (Example: ANAND, ANGAD,…)
Q9. To display StudentID, Name, DOB of those students who are born between
‘2005-01-01’ and ‘2005-12-31’.
Q10. To display StudentID, Name, DOB, Marks, Email of those male students in
ascending order of their names.
As Email field is not added previously in the Table. So, following commands must
be executed first to include it on the table:
Then using UPDATE command I add the Email value to the respective records like
below:
Q13. Write a query to modify the marks of all the Students with 5% more
with existing marks.
Q14. Write query to delete records from STUDENT table for students of
Class XII.
===========