DEC40073 Practical Work 1 Part2
DEC40073 Practical Work 1 Part2
DTK4A
YEW JIA XIAN (SAM)
15DTK21F2011
Activity 1a
Activity 2b
Activity 2c
CREATE TABLE Staff
(
Staff_Name INT NOT NULL,
Position INT NOT NULL,
Salary INT NOT NULL,
Staff_Number INT NOT NULL,
PRIMARY KEY (Staff_Number)
);
Conclusion
For the book and publisher there are two entities, while the one for department, project and
employees required three entities. Relationships are important to keep the ERD organized and
understandable for users to understand the layout. For each entity there should be at least an
attribute whether it is unique or composite, such as address, age and name. This application has
helped me to understand how programmers organize their systems. Each employee should be
assigned to a unique project in order for the company have a comfortable working schedule.
Each entity is labelled in a rectangle slot, each attribute is labelled in an oval slot, while reach
relationship I labelled in a diamond slot. Relationship between two entities can be many to one, one
to one, or many to many. The erd Can be a circular layout or a straight relational diagram.