Mysql Lab2

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

LAB2

1. Add gender column for the student table. It holds two value (male or female).
2. Add telephone for the students.
3. Add birth date column for the student table.
4. Delete the name column and replace it with first name and last name.
5. Insert your classmates’ data into the table (by 2 different methods!).
6. Update your information by changing your telephone.
7. Display all students’ information.
8. Display male students only.
9. Display the number of female students.
10.Display the students who are born before 1992-10-01.
11.Display male students who are born before 1991-10-01.
12.Display subjects and their Assignment sorted by total points.
13.Display the subject with highest total point (two ways)
14.Display students’ names that begin with A.
15. Display the number of students’ their name is “Mohammed”
16.Display the number of males and females.
17.Display the repeated first names and their counts if higher than 2.
18. Display students’ names, their score and Assignment type.
19.Display students names who are absent in a particular test.
20.Display a report containing test type, date, min score, max score, average score, number of
attended students.
21.Delete students their score is lower than 50 in a particular test.
22.Using subquery select the students’ who did not attend a test.
23.Create a view for all students with their total grades.
24.Insert new student and his grades as transaction.

Made with by 1

You might also like