Question: QUESTION 5 NOTE: All SQL syntax must be correct, missing characters will be penalized! 5 . a . The Finance Department of SOUTHERN AFRICA NAZARENE
QUESTION
NOTE: All SQL syntax must be correct, missing characters will be penalized!
a The Finance Department of SOUTHERN AFRICA NAZARENE UNIVERSITY stores
the Bonus field in the Employee table because a bonus is an attribute associated with
employees.
EMPLOYEE Employee ID EmployeeFname, EmployeeLname, Birthdate, DeptID
Bonus
Given the structure and contents of the database shown in table above, use SQL
commands to answer questions aiii
i Write a SQL code to display the employees names, year of birth, and the bonus for
each employee. Sort the results by the employeeid as in the table below.
ii Because you are a registered student at UNISA and you have classmates who are your friends, please write SQL code to enter your own correct information and also the information of anther student into the STUDENT table. That is records. For the student number of your friend you can use
iii. Write a SQL code to change your email address from your mylife email address to a Gmail address.
iv Write a SQL code to delete the STUDENT table from the database. Table :
ii Write the SQL code to delete the row for the employee who was paid R bonus.
b In the following questions, you will use the data of UNISA student registration information.
i Write the SQL code that will create the STUDENT table provided below. This table is a subset of the UNISA student registration database. Note that the DEPTCODE is the FK to DEPARTMENT, also use your own Data Declarations
Table : The attributes of the Student Entity
ii Because you are a registered student at UNISA and you have classmates who are your friends, please write SQL code to enter your own correct information and also the information of anther student into the STUDENT table. That is records. For the student number of your friend you can use iii. Write a SQL code to change your email address from your mylife email address to a Gmail address.
iv Write a SQL code to delete the STUDENT table from the database.
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
