Hi all,
I'm a student in my first year of an IT Program and one of the courses I've been struggling to understand is Introduction to Databases. We've moved from manipulating data/generating reports/making queries in Access to designing ERDs. What I'm having trouble with is deciding what should be a P.Key and a F.Key as well as what should be its own entity.
I'll post the database description as well as the ERD I've come up with. What I'm hoping is that someone could have a look at it and let me know if my logic is flawed. Additionally, if anyone has any recommended web resources for understanding/developing ERDs I'd be much obliged.
Anyways, here is the description:
Scenario 1: Soapscum Window Washing wants to keep track of its customers, employees and the projects to which they are assigned. They need to keep track of some basic employee contact information, such as their first name, last name, street address, city, province, postal code, phone number, email address, and emergency contact phone number. They use job classifications to group employees and determine salary. A classification has a code, description, and a salary. Each employee is assigned to a single classification, and there can be multiple employees within the company assigned to a classification. In addition, they would like to keep track of all the projects to which an employee is assigned. For each project, there is an id number, a start date, an end date, and a cost. Each project can have multiple employees assigned to it, and an employee can be assigned to multiple projects. They would like to track their customer’s contact information such as the company name, street address, city, province, postal code, contact person, and phone number. Each project is for only a single customer, but a customer will have multiple projects over time.
And this is the ERD I've come up with:
If anyone could give some advice, I'd be extremely grateful.
- Greg