Question

(Please do not copy and paste from another question. I am new to this and need it to be simple)

Draw an ERD for a “Hospital” with many departments and employees in each department. show things like (one to one, one to many, many to many).

What attributes would you store regarding each objects/class/data entities?

Thank you!

(Example)

FIGURE 4-10 An ERD for a bank with many branches Customer cust number-PK name bill address home phone office phone = Account

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Hospital Department PK PK Hospitali name phone DepartmentID Address Phone Hospital D Location FK Employee PK Employeeld Emplo

As you said you're new to this.Let me explain from the scratch
The above notation used to draw ER diagram is called Crow's foot notation and the tool used is Lucidchart
Entity Key Field Key Field Key Field This represents an entity(table) key is PK(Primary Key) and FK(Foreign Key)

this represents a many-to-one relationship

###########
Let's get into Entities:

The entities are:

  • Hospital
  • Department
  • Employee

The attributes of th entities are:

  • Hospital(HospitalID,Name,Phone,location)
  • Department(DepartmentID,address,phone,HospitalID)
  • Employee(EmployeeID,Name,Phone,Address,DepartmentID)

The underlined are the primary keys
#####

Let's get into relationships between the entities:

  1. A hospital can have many departments but a department belongs to only hospital(makes sense right?)
    so relationship between hospital and department is Many-to-One.
    Since a hospital can have many departments so we need to refer to our hospitalID in Department so that we can say which department belongs to which hospital.So HospitalID referred from Hospital is the foreign key for Department.
  2. A Department can have many employees whereas an employee can work for only department(makes sense right?) so the relationship between employee and department is many-to-one. We need to include a foregin key departmentID in employee table so that we can know which employee belongs to which department.

########################################################

Give a ThumbsUp if you found this answer Helpful :)
#######################################################


################################################################
............ Still having trouble understanding the answer ? Feel free to ask in the comment section.......

Add a comment
Know the answer?
Add Answer to:
(Please do not copy and paste from another question. I am new to this and need...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Make an ERD including all entities, attributes, relations, and constraints. Please upload as a doc based...

    Make an ERD including all entities, attributes, relations, and constraints. Please upload as a doc based on everything listed below University Bookstore •University Bookstore has several branches throughout Bloomington, and employees may be assigned to work at any of the branches. •Employees are identified by an ID and have a full name, date of birth, SSN, address, multiple phone numbers, a gender, and a hire date. •A Manager runs a branch and is responsible for all operations at that branch....

  • Q1.a) Based on the business rules, you are expected to construct an Entity-Relationship (ER) diagram. The...

    Q1.a) Based on the business rules, you are expected to construct an Entity-Relationship (ER) diagram. The ER diagram should include entities, attributes (if there are less than three specified in the business statements, please add some extra attributes), identifiers and corresponding data types, the relationships among entities with cardinality and associative entities. .b) Extend Q1.a) to apply generalization/specialization technique to construct an Enhanced-ER (EER) diagram. The EER diagram should specify the complete (total) and disjoint (mutuallyexclusive) constraints on the generalization/specialization....

  • PLEASE DO NOT COPY AND PASTE FROM A PREVIOUS QUESTION , THIS IS DIFFERENT. PLEASE READ...

    PLEASE DO NOT COPY AND PASTE FROM A PREVIOUS QUESTION , THIS IS DIFFERENT. PLEASE READ STEP 5 CAREFULLY. MUST BE WRITTEN IN C++ You are to implement a program for creating a daily transaction ledger for a shop. For this project, you will need to utilize the concepts ofarrays and object creation that have been discussed in class The list of requirements and constraints for the system are as follows 1. The system must be able to maintain records...

  • DO NOT COPY PASTE THE SOLUTION FROM ANOTHER QUESTION! IT IS NOT THE RIGHT ONE, ANSWER...

    DO NOT COPY PASTE THE SOLUTION FROM ANOTHER QUESTION! IT IS NOT THE RIGHT ONE, ANSWER WILL BE REPORTED IF NOT A UNIQUE SOLUTION. Write a C program called myshell.c, which, when compiled and run, will do what the shell does, namely, it executes in a loop (until user types exit on the keyboard), prints a prompt on the screen, reads the command typed on the keyboard (terminated by \n), creates a new process and lets the child execute the...

  • I need new and unique answers, please. (Use your own words, don't copy and paste), Please...

    I need new and unique answers, please. (Use your own words, don't copy and paste), Please Use your keyboard (Don't use handwriting) Thank you.. Supervised vs. Unsupervised vs. Semi-supervised Learning Data scientists use many different kinds of machine learning algorithms to discover patterns in data. These algorithms can be classified in three main categories: supervised, unsupervised, and semi supervised learning. For each Learning type, give an application and explain why we should use it?

  • I need new and unique answers, please. (Use your own words, don't copy and paste), Please...

    I need new and unique answers, please. (Use your own words, don't copy and paste), Please Use your keyboard (Don't use handwriting) Thank you.. Question 1- The trial balance of Makkah Inc: Credit Debit 15,000 Account title Cash Account payable Retained earnings Total 10,000 5,000 15,000 15,000 Makkah, Inc., completed the following transactions during April 2016: a. Received $18,200 and issued ordinary shares. b. Purchased $200 office supplies on account. C. Paid $15,200 cash for land to use as a...

  • I need new and unique answers, please. (Use your own words, don't copy and paste), Please...

    I need new and unique answers, please. (Use your own words, don't copy and paste), Please Use your keyboard (Don't use handwriting) Thank you.. 1. Many variations in health are associated with demographic variables such as race, gender and social class. Select any one of these variables and briefly summarize how the variation in health is associated with the variable you chose 2. In your opinion, do you think that additional research needs to be done to further investigate this...

  • ( i need Unique answer, don't copy and paste, please) (dont' use handwriting, please) I need...

    ( i need Unique answer, don't copy and paste, please) (dont' use handwriting, please) I need the answer quickly, please :((((((.. pleaaasssee heeelp mmmeeee// i need all answers, UNIQUE ANSWER please Q3: Write a Java program that allows the following: 1.Create an array list of 20 integers. The 20 integers are generated randomly with possible values from 0 to 10. 2.Print the content of the array list. 3.Find how many of these values are multiple of 3. Show a screenshot...

  • I need new and unique answers, please. (Use your own words, don't copy and paste), Please...

    I need new and unique answers, please. (Use your own words, don't copy and paste), Please Use your keyboard (Don't use handwriting) Thank you.. Many variations in health are associated with demographic variables such as race, gender and social class. Select any one of these variables and briefly summarize how the variation in health is associated with the variable you chose I need more details please 2. In your opinion, do you think that additional research needs to be done...

  • Please Do It With Java. Make it copy paste friendly so i can run and test...

    Please Do It With Java. Make it copy paste friendly so i can run and test it. Thnak You. Write programs for challenges 1 and 2 and 6 at the end of the chapter on Generics. 1) Write a generic class named MyList, with a type parameter T. The type parameter T should be constrained to an upper bound: the Number class. The class should have as a field an ArrayList of T. Write a public method named add, which...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT