Lab1 CSI104
Lab1 CSI104
DateOfBirth 9/10/2004
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 name and age FROM col2 , col3WHERE student=’Table1’ AND years old
>'21';
5. Select the name and gender of all students whose name starts with 'J'
10. Select ID, name, and gender of all students studying in the Delta
building
11. Select the name and gender of all students of the SE department
whose name starts with 'J'
12. Select top 5 students of the AI department with the highest GPA,
ordered by the student's GPA in descending order.
13. Select the list of female students of the SE department and sort them
in descending order of GPA.
14. 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.