Entity and referential integrity rules apply to relations

Assignment Help Other Subject
Reference no: EM133133310

Exercise 1.

The following tables form part of a database held in a relational DBMS :

Hotel (hotelNo, hotelName, city) Room (roomNo, hotelNo, type, price) Booking (hotelNo, guestNo, dateFrom, dateTo, roomNo) Guest (guestNo, guestName, guestAddress) where Hotel contains hotel details and hotelNo is the primary key ; Room contains room details for each hotel and (roomNo, hoteINo) forms the primary key ; Booking contains details of bookings and (hoteINo, guestNo, datFrom) forms the primary key;

Guest contains guest details and guestNo is the primary key

a. Identify the foreign keys in this schema. Explain how the entity and referential integrity rules apply to these relations.

b. Produce some sample tables for these relations that observe the relational integrity rules. Suggest some general constraints that would be appropriate for this schema.

c. Analyze the RDBMSs that you are currently using. Determine the support the system provides for primary keys, alternate keys, foreign keys, relational integrity, and views.

d. Implement the above schema in one of the RDBMSs you currently use. Generate two user-views that are accessible and updatable as well as two other user-views that cannot be updated.

Exercise 2 :

Assume you have been contracted to develop a database system for a university library. You are required to use a systems development lifecycle approach. Discuss how you are going to approach the project. Describe user groups that will be involved during the requirement analysis. What are the key issues that need to be answered during fact finding?

Exercise 3 :

Create an ER model for each of the following descriptions:

a. A large organization has several parking lots, which are used by staff.

b. Each parking lot has a unique name, location, capacity, and number of floors (where appropriate).

c. Each parking lot has parking spaces, which are uniquely identified using a space number.

d. Members of staff can request the sole use of a single parking space. Each member of staff has a unique number, name, telephone extension number, and vehicle license number.

e. Represent all the ER models described in parts (a), (b), (c), and (d) as a single ER model. Provide any assumptions necessary to support your mode.

Reference no: EM133133310

Questions Cloud

Explaining what the news story teaches about marxism : A paragraph explaining what the news story teaches about Marxism, whether or not it presents it as a positive or a negative
Explain systems development principles : Demonstrate your understanding of e-Commerce principles, particularly strategies for success - systems development principles
Provide an analysis of the three territories of Jason Ltd : Provide an analysis of the three territories of Jason Ltd and advice the company if it should keep Scotland territory open or discontinue Scotland
What would be the actuarially fair premium : Question: If only unhealthy people buy the insurance, what would be the actuarially fair premium? Please show your calculations.
Entity and referential integrity rules apply to relations : Identify the foreign keys in this schema. Explain how the entity and referential integrity rules apply to these relations.
Economic status of businesses : What is the impact on the economy or the economic status of businesses if occupational safety and health is neglected?
Proportion of the balls : A factory produces tennis balls whose weights follow a bell-shaped distribution with a mean of 2.06 ounces and a standard deviation of 0.04 ounces. According to
What is expected utility : If the person purchased full insurance under this scenario with two adverse events, where the premium was $7.500. What is expected utility?
Different risk-identification strategies : How many different risk-identification strategies did you identify? Which ones are most effective and why?

Reviews

Write a Review

Other Subject Questions & Answers

  Discuss the way to overcome challenges

There are always going to be challenges within all organizations. The way to overcome challenges would be by.

  Explain diagnosis for the patient

Explain diagnosis for the patient, including your rationale for the diagnosis. Describe an appropriate drug therapy plan based on the patient's history

  Personality traits-interpersonal needs and first impression

we have to write about six concepts and set up an introuducation and I really have no clue how to start up with. We need to discuss these concepts : personality traits, interpersonal needs, first impression, trust, social attraction, and phyisical ..

  Explain heidegger concept of the mathematical project

Explain Heidegger's concept of the"Mathematical" project in relation to Galileo's "in mente concipere"and how it is an a priori.

  What germany and japan doing differently in energy policy

What are Germany and Japan doing differently in their energy and climate policies, compared with the US, and how has this affected their mix of energy sources.

  Describe three types of perfectionism

Describe three types of perfectionism. How would you know if a student is a perfectionist? Would you be concerned? Why or why not? Give three ways you could help this student

  Demonstrate three types of natural hazard

describe and demonstrate three types of natural hazard experienced that has led to loss of life on a global basis in the last 20 years

  Social position

In the United States, people of ____________________ are most likely to vote.

  What average american citizen to influence federal process

What can an average American citizen do to influence the federal policymaking process? Please cite examples. Provide a fully developed essay of at least 500 words, and cite sources used.

  Determine the given facts

Lord Hazelton, the murdered man, was killed by a blow on the head with a brass candlestick.

  Discuss the impact of technology and its relationship

Discuss the impact of technology and its relationship to spending in the United States vs. health outcomes.

  Write up assignment on shoulder separation

Need to do write up assignment on Shoulder separation, Glenohumeral dislocation/subluxation, Excess cubital valgus, Dupuytren's contracture

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd