Professional Documents
Culture Documents
Individual Assignment 2
Not Null
job_code char 3 PK
job_class char 30
JOB
JOB_CODE JOB_CLASS CHG_HOUR
Page 1 of 4
Faculty of Information & Communication Technology
3. Create the EMPLOYEE table with the sample data on the previous page. Also implement
the following constraints.
Not Null
emp_num int PK
(job_code)
hiredate date NN
EMPLOYEE
EMP_NUM EMP_FNAME EMP_LNAME JOB_CLASS HIREDATE
108 SYA
5. Add a new attribute to the JOB table named OvertimeCharge that must always have a
value.
6. In Emp_Num 108 you should insert your own first and last name and HIREDATE should be
the date that you started the assignment.
7. Add a constraint that will add the value NA to all JOB_CLASS columns in table JOB if no value
is specified when the record is inserted into the table.
8. Add a constraint that always requires a value entered into the CHG_HOUR column.
9. Change the CHG_HOUR column to store numbers up to 12 digits in length (including decimal
points).
10. Insert the 3 rows shown below into the EMP table.
11. Update the employee EMP_FNAME to Jim instead of James for employee 118
12. Update the Database Designer CHG_HOUR value by 10%
13. Remove the row from the job table for job code APD
14. Remove the employees from the employee table where the HIREDATE is before
1-January-90
Page 3 of 4
Faculty of Information & Communication Technology
Page 4 of 4