Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please produce an ER diagram that best represents the relational schema below. CREATE TABLE TA ( EMPID INTEGER PRIMARY KEY, NAME VARCHAR ( 6 0
Please produce an ER diagram that best represents the relational schema below.
CREATE TABLE TA
EMPID INTEGER PRIMARY KEY,
NAME VARCHAR
ADDR VARCHAR
PHONE CHAR
DOB DATE,
SENIORITY DATE NOT NULL
;
CREATE TABLE COURSECOORDINATOR
EMPID INTEGER PRIMARY KEY,
FOREIGN KEY EMPID REFERENCES TAEMPID ON DELETE CASCADE,
EMAIL CHAR NOT NULL,
FIRSTTUTORIAL DATE NOT NULL
;
CREATE TABLE LABLEADER
EMPID INTEGER PRIMARY KEY,
FOREIGN KEY EMPID REFERENCES TAEMPID ON DELETE CASCADE,
HELPDESK CHAR
COURSE INTEGER,
FOREIGN KEY COURSE REFERENCES COURSECOURSEID
;
CREATE TABLE COURSE
COURSEID INTEGER PRIMARY KEY,
SHORTNAME CHAR
FULLNAME CHAR
COURSECOORDINATOR INTEGER NOT NULL,
UNIQUECOURSECOORDINATOR
FOREIGN KEY COURSECOORDINATOR REFERENCES COURSECOORDINATOREMPID
;
CREATE TABLE TUTOR
EMPID INTEGER,
FOREIGN KEY EMPID REFERENCES TAEMPID
COURSE INTEGER,
FOREIGN KEY COURSE REFERENCES COURSECOURSEEID
PRIMARY KEY EMPID COURSE
;
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started