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 MARKS
Suppose you have the following table named Student. The table is stored in a Database called School.
Student
StudentID
StudentName
StudentSurname
StudentPhone
StudentAddress
Erling
Sule
st Avenue
Cristiano
Ronaldo
nd Street
Abedi
Pele
Fauna Drive
Write SQL code to achieve the following.
Create a database named school and a table named student the table must be created within the School Database
Insert all the records shown on the table above.
Insert a new record with the StudentID use your own values for the rest of the columns
List all the records where the StudentName has a letter e
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.
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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
