Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

The ER-Diagram that needs to be extended is this: 2 Extending QF's Database [30 Points] Suppose that Qatar Foundation wishes to extend their database to

image text in transcribed The ER-Diagram that needs to be extended is this: image text in transcribed

2 Extending QF's Database [30 Points] Suppose that Qatar Foundation wishes to extend their database to include the phone numbers of visitors and guests. 10pts (a) Qatar Foundation records the name, phone number, and destination of a visitor. A visitor can visit multiple destinations and QF records at least one. For example, a visitor can visit CMUQ followed by the Student Center. Extend the E.R. diagram from Exercise 1 to include the entity visitor and the associated relationship. Clearly indicate primary and partial keys, cardinality constraints, weak entities (if applicable), and participation constraints. 10pts] (b) b) An employee is allowed to exercise at any Activities Center and is also allowed to have two guests associated with him/her. Information stored about a guest is his/her name and age. Guests are assumed to accompany the employee at all times and, hence, emergency messages are sent only to the employee. Once again, extend the E.R. diagram from Exercise 2.A to include the entity guest and all given relationships. Clearly indicate primary and partial keys, cardinality constraints, weak entities (if applicable), and participation constraints. 10pts (c) Write SQL statements to create tables corresponding to your new E.R. diagram. Make sure to indicate primary keys, and foreign keys (if any). Do not specify on delete clauses or check constraints. Name (classification) Name M Employee I m 7 M work? organization hogy M yovganization Employee t (Contact oppoint ed organization hames Manager Contact Contact Name ID 2 Extending QF's Database [30 Points] Suppose that Qatar Foundation wishes to extend their database to include the phone numbers of visitors and guests. 10pts (a) Qatar Foundation records the name, phone number, and destination of a visitor. A visitor can visit multiple destinations and QF records at least one. For example, a visitor can visit CMUQ followed by the Student Center. Extend the E.R. diagram from Exercise 1 to include the entity visitor and the associated relationship. Clearly indicate primary and partial keys, cardinality constraints, weak entities (if applicable), and participation constraints. 10pts] (b) b) An employee is allowed to exercise at any Activities Center and is also allowed to have two guests associated with him/her. Information stored about a guest is his/her name and age. Guests are assumed to accompany the employee at all times and, hence, emergency messages are sent only to the employee. Once again, extend the E.R. diagram from Exercise 2.A to include the entity guest and all given relationships. Clearly indicate primary and partial keys, cardinality constraints, weak entities (if applicable), and participation constraints. 10pts (c) Write SQL statements to create tables corresponding to your new E.R. diagram. Make sure to indicate primary keys, and foreign keys (if any). Do not specify on delete clauses or check constraints. Name (classification) Name M Employee I m 7 M work? organization hogy M yovganization Employee t (Contact oppoint ed organization hames Manager Contact Contact Name ID

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions