Question: Questions A . Use the methods presented in class to translate the ER diagram into relations. Translate the ER design, including entities and relationships, into
Questions
A Use the methods presented in class to translate the ER diagram into relations.
Translate the ER design, including entities and relationships, into a set of relations.
Describe the primary key, not NULL and inclusion dependency constraints needed for the relational schema to capture and enforce the semantics of the ER design.
Note: You can ignore the derived attributes in the assignment.
Example:
Relation:
employeeid depId, name, level, award
Not Null Attributes:
All nonkey attributes are not NULL.
Inclusion constraints:
employeedepIddepartmentid
B Write SQL DDL statements for creating the tables corresponding to the relations you developed. Pick suitable data types for each attribute. Also include the appropriate referential integrity constraints and NOT NULL constraint while creating the tables. Execute your DDL statements on MySQL and make sure that all the statements execute without any error we will be executing the DDL statements in the same order as in your submission
Example:
CREATE TABLE Employee
id INTEGER NOT NULL,
name VARCHAR NOT NULL,
depId VARCHAR NOT NULL,
award VARCHAR
PRIMARY KEY id
FOREIGN KEY depId REFERENCES DepartmentdepID
;
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
