Question: database name: database= db507653 Tables in lab 4= {tables in db507653}= 507653_course 507653_enrolment 507653_lecturer 507653_students students_with_pk (courseID, courseName, lectID, EnrolmentID, stdID, stdName, intakeYear,stdEmail) Insert three
database name: database= db507653
Tables in lab 4= {tables in db507653}= 507653_course 507653_enrolment 507653_lecturer 507653_students students_with_pk (courseID, courseName, lectID, EnrolmentID, stdID, stdName, intakeYear,stdEmail)
- Insert three (3) data to each of the table in the tables created in lab 4.
- Fill in the lecturer table using the details of your favorite lecturers.
- Fill in the course table using the details of your favorite courses.
- Fill in the students table using your own details and two of your course mates beside you in the lab.
- Fill in the appropriate information in the enrollment table using your data and your course mates data.
- Select and display all the data in table course.
- Select and display your own data from students table using your student ID.
- Update your own year of intake in the students table to 2021.
- Delete one lecturer from your lecturer table.
- Delete all lecturers from your lecturer table.
- Update the information in Figure 1 into your students table using the SQL command you learnt previously.
Figure 1: Table Students.
- Perform the operation below:
- Retrieve the distinct list of intake year from the table students.
- Sort the distinct list of intake year from the table in descending order.
- Retrieve a data from table students where the name of the student is Enson Liu and the year of intake is 2016.
- Retrieve the data from table students where the name of the student is Enson Liu or the year of intake is 2012.
- List all the student in table students that are not from the year 2018.
- Calculate the sum and average value for the student id in the table students.
- Show the largest year in the table students.
- Show the smallest student id in the table students.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
