Lab1_CSI104
Lab1_CSI104
Table 1: STUDENTS. The table has the structure and some sample data as the following.
Table 2: DEPARTMENTS. The table has the structure and some sample data as the following.
3. Select the name and age of all students who are 21 years old
4. Select the name and gender of all students whose name starts with 'J'
9. Select ID, name, and gender of all students studying in the Delta building
10. Select the name and gender of all students of the SE department whose name starts with
'J'
11. Select top 5 students of the AI department with the highest GPA, ordered by the student's
GPA in descending order.
12. Select the list of female students of the SE department and sort them in descending order
of GPA.
13. Add a new student with the following information: ID: ‘S0005’, Name: ‘Alice Brown’, Age:
20, Gender: ‘Female’, GPA: 8.4, DepID: ‘SE’.
14. Update the GPA of the student with ID=’S1012’ and name=’Sara Williams’ to 9.5.