A. Create Tables: Table Name: Employee Attribute Data Type Primary Foreign Constraint
A. Create Tables: Table Name: Employee Attribute Data Type Primary Foreign Constraint
A. Create Tables: Table Name: Employee Attribute Data Type Primary Foreign Constraint
A. Create Tables
1
Sex CHAR Sex IN ('M',
'F', 'm', 'f')
Salary DECIMAL(10,2) DEFAULT
'800'
Supervisor SSN CHAR(9) employee (SSN)
Department Number INT
2
Sex CHAR Sex IN ('M',
'F', 'm', 'f')
Birthday DATE
Relationship VARCHAR(8)
B. Insert Data
Table Name: Employee
Mini
FName LName SSN BDate Address Sex Salary SuperSSN DepNo
t
Doug E Gilbert 554433221 09-JUN-60 11 S 59 E, Salt Lake City, UT M 80000 NULL 3
Joyce PAN 543216789 07-FEB-78 35 S 18 E, Salt Lake City, UT F 70000 NULL 2
Frankin T Wong 333445555 08-DEC-45 638 Voss, Houston, TX M 40000 554433221 5
Jennifer S Wallace 987654321 20-JUN-31 291 Berry, Bellaire, TX F 43000 554433221 4
John B Smith 123456789 09-JAN-55 731 Fondren, Houston, TX M 30000 333445555 5
Ramesh K Narayan 666884444 15-SEP-52 975 Fire Oak, Humble, TX M 38000 333445555 5
Joyce A English 453453453 31-JUL-62 5631 Rice, Houston, TX F 25000 333445555 5
James E Borg 888665555 10-NOV-27 450 Stone, Houston, TX M 55000 543216789 1
Alicia J Zelaya 999887777 19-JUL-58 3321 Castle, Spring, TX F 25000 987654321 4
Ahmad V Jabbar 987987987 29-MAR-59 980 Dallas, Houston, TX M 25000 987654321 4
DepNo DLocation
1 Houston
1 Chicago
2 New York
2 San Francisco
3 Salt Lake City
4 Stafford
4 Bellaire
5 Sugarland
5 Houston
3
ProjectB 1945 Salt Lake City 3
ProjectC 6688 Houston 5
ProjectD 24 Bellaire 4
ProjectE 77 Sugarland 5
ProjectF 1 Salt Lake City 3
ProjectG 12 New York 2
ProjectH 34 Stafford 4
ProjectI 43 Chicago 1
ProjectJ 22 San Francisco 2