Question: QUESTION 3 ( 3 0 MARKS ) Suppose you have the following table named Student. The table is stored in a Database called School. Student

QUESTION 3(30 MARKS)
Suppose you have the following table named Student. The table is stored in a Database called School.
Student
Student_ID
Student_Name
Student_Surname
Student_Phone
Student_Address
1234
Erling
Sule
0711234567
3321st Avenue
5678
Cristiano
Ronaldo
0724567890
182nd Street
9101
Abedi
Pele
0737894560
8 Fauna Drive
Write SQL code to achieve the following.
3.1.1 Create a database named school and a table named student (the table must be created within the School Database)(5)
3.1.2 Insert all the records shown on the table above. (5)
3.1.3 Insert a new record with the Student_ID 9999(use your own values for the rest of the columns)(5)
3.1.4 List all the records where the Student_Name has a letter e.(5)
3.2 Assume you have the following entity.
Write a SQL query to list each employee name and surname, their weekly average and the monthly average. Show a field called OverallAverage which is the weekly average + monthly average. Sort the employees alphabetically. (10)
*******************************************************END******************************************************** Employee
EmployeeID {PK}
EmployeeName
EmployeeSurname
EmployeeWeeklyAverage
EmployeeMonthlyAverage

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!