
Database Schema Design for COMPANY Entity-Relationship Model
Explore the database schema design process for the COMPANY entity-relationship model, which includes entities like EMPLOYEE, DEPARTMENT, PROJECT, and DEPENDENT. Learn about the organizational structure, relationships, and attributes to effectively model data in the COMPANY Database.
Download Presentation

Please find below an Image/Link to download the presentation.
The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.
You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.
The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.
E N D
Presentation Transcript
Extra notations Entity-Relationship Modeling "Extended"
Summary of notation for ER diagrams Slide 3- 2
Example COMPANY Database We need to create a database schema design based on the following (simplified) requirements of the COMPANY Database: The company is organized into DEPARTMENTs. Each department has a name, number and an employee who manages the department. We keep track of the start date of the department manager. A department may have several locations. Each department controls a number of PROJECTs. Each project has a unique name, unique number and is located at a single location. Slide 3- 3
Example COMPANY Database (Contd.) We store each EMPLOYEE s social security number, address, salary, sex, and birthdate. Each employee works for one department but may work on several projects. We keep track of the number of hours per week that an employee currently works on each project. We also keep track of the direct supervisor of each employee. Each employee may have a number of DEPENDENTs. For each dependent, we keep track of their name, sex, birthdate, and relationship to the employee. Slide 3- 4
COMPANY ER Schema Diagram UML notation Department Employee Manager Department 1 ..1 0..*
Initial Design of Entity Types: EMPLOYEE, DEPARTMENT, PROJECT, DEPENDENT Slide 3- 6
COMPANY ER Schema Diagram using (min, max) notation Slide 3- 7
Crow's Foot Notation Crow s Foot