Create an erd that shows the entities and attributes

Assignment Help Database Management System
Reference no: EM131211674

Assessment Item 1:

Task

The Fermoy House database

The owners of Fermoy House, a Bed and Breakfast guest house in the Blue Mountains of NSW, have approached you to build them a database to help them run their business.

Fermoy House provides overnight accommodation and breakfast to couples and has four guest bedrooms and a detached private cottage in a private part of the garden. Each bedroom, and the cottage, will accommodate a maximum of 2 guests only.

Task 1. Create an ERD that shows the entities, attributes, relationships, cardinality and optionality that describe the booking of a room by a guest. This ERD is to be labelled ERD 1.

In order to create a point of differentiation from other local bed and breakfast houses, Fermoy House will allow guests to have up to 2 of their dogs stay in the attached kennels. The dog names are normally recorded so that Fermoy House can provide guests with a personalised dog collar for each dog.

Task 2. Add the entities, attributes, relationships, cardinality and optionality that describe the addition of a dog(s) by a guest to their booking. Add these to ERD 1. This new ERD is to be labelled as ERD 2.

Breakfast is provided for all guests as part of their accommodation, and guests can choose from either a Continental or a cooked Irish breakfast. This information is normally recorded at the time of booking the accommodation.

Task 3. Add the entities, attributes, relationships, cardinality and optionality that describe the addition of breakfast by a guest to their booking. Add these to ERD 2. This new ERD is to be labelled as ERD 3.

Bookings are normally taken for up to 12 months in advance and guests who have stayed more than 5 times at Fermoy House receive a gift of wine and chocolates on arrival.

Task 4. Add the entities, attributes, relationships, cardinality and optionality that describe how many times a guest has booked a stay at Fermoy House. Add these to ERD 3. This ERD is to be labelled as ERD 4.

Rationale

This assessment item is designed to test your understanding of the following learning outcomes:

Basic database design and modelling concepts, Identification and interpretation of business rules,

Creation of an Entity Relationship Diagram from a set of business rules,

Application of correct relationships, cardinalities, optionality using the Crows Foot modelling notation.

Presentation

Assignments are to submitted as a single document with all ERD drawings embedded in the document. Assignments that are submitted with separate ERD drawings will not be accepted.

ERD drawings are to be completed using either mySQL or the Draw.io tool.

Assessment item 2

Task

Home Library

ISBN

Title

Author_LastNam e

Author_FirstNam e

Publisher

Date

Edition

Media

369852

Cosmos

Sagan

Carl

Random House

1980

1

Book

741258

No Secrets

Simon

Carly

Elektra

1972

1

CD

654789

Symphony No 3 Dur Eroica Op 55

Beethoven

Ludw ig

 

1805

1

CD

789654

On the Decay of the Art of Lying

Tw ain

Mark

Project Gutenberg

1880

1

eBook

258963

The Adventures of Sherlock Holmes

Conan Doyle

Arthur

Project Gutenberg

 

1

eBook

125896

The Divine Comedy

Alighieri

Dante

Project Gutenberg

 

1

ebbok

357951

The Hitchhikers Guide to the Galaxy

Adams

Douglas

Pan books

1979

1

Book

852369

The Return of the King, Soundtrack

Shore

How ard

Reprise

2003

1

CD

831975

Unseen Academicals

Pratchett

Terry

Doubleday

2009

1

Book

Tasks:

Using the Home library relation above:

1. Draw a dependency diagram to show the functional dependencies that exist in this relation.

2. Decompose the Home Library relation into a set of 3NF relations and draw a dependency diagram for each of the 3NF relations.

3. Develop the Relational Schema for each of these 3NF relations and show the referential integrity constraints that apply.

Rationale

This assessment item is designed to test your ability to

Gather, analyse and model business requirements using Enhanced Entity Relationship Diagrams (EERD), Critically analyse a database design and apply Normalisation Theory and techniques.

Assessment item 3

Task

Notes:

This assignment requires you to use MySQL to complete the tasks listed below. The instructions listed below relate to MySQL. Typing the SQL statements or the results is NOT acceptable and will result in 0 marks for the assessment

You are required to submit:

1. The appropriate SQL statements for each query, which should be copied from your SQL code in MySQL and pasted into your submission file, and

2. Screenshots of the resultant tables which are to be pasted into your submission file immediately after the SQL code for that query.

3. Typing or manually drawing the results is NOT acceptable.

Tasks Part 1

Open the database prime_minister database (prime_minister.sql ) from the ITC556 Interact Resources Databases folder. Answer the following queries using this database.

1. Find certain Governors General of Australia.

a. Find all Governors General of Australia who were Barons at the time of their appointment. List them by Title and name and date that they were appointed to the position. Order the list by ascending date of appointment.

b. Now, format the date of appointment as day of the week, day of the month, month and year; eg. Monday, 01 January, 1901. Order the list by ascending date of appointment.

2. Find certain Leaders of the Opposition.

a. Find all Leaders of the Opposition and their date of appointment, who assumed their position after 01/01/1980.
b. For each Leader of the Opposition listed, add their wife's name and their date of marriage.

3. Find certain Governors General of Australia.
a. List the title, name, date of appointment for Governors General of Australia who were appointed between 01 January 1930 and 01 January 1960. Order by ascending date of appointment.
b. Now add to the results of q3a, the list of Prime Ministers who appointed them and all Leaders of the Opposition who served during their appointment as Governor General of Australia. Order by ascending date of appointment.

4. Who are the Opposition Leaders who subsequently became Prime Minister after 1930?

a. List their name, the date they were elected Opposition Leader and the date they were elected Prime Minister. The dates must be formatted as day of the week, day of the month, month in digits and year in four digits; eg. Monday, 01/01/1901. Order the list in ascending date of appointment as Prime Minister.

b. Now add their Deputy Prime Minister's name and the party that they led. Order the list by ascending date of appointment as Opposition Leader.

Part 2

 

2409_Database.jpg

The design of the Prime_Ministers database is now very old. You have been asked to review this design, as shown in the ERD below and advise how it could be updated. You are to complete the following tasks:

5. Advise how you would improve the ability to query information in this database. For simplicity, use only the tables prime_minister, governor_general, ministry and opposition in your answer.

a. What new integrity constraints would you use in each of these tables?

b. Why would you use these integrity constraints? Explain how your constraints would improve queries on the tables.
c. Write the DDL code that would implement your new integrity constraints for the following tables:
i. Prime_minister
ii. Governor General
iii. Ministry
iv. Opposition

(Note: You must keep all of the data attributes currently in these tables. Your implementation should include all existing data attributes and any new integrity constraints)

Rationale

This assessment will test your ability to:

be able to implement a database design using Structured Query Language (SQL); be able to query a database using SQL.

Presentation

You are required to submit:

1. The appropriate SQL statements for each query, which should be copied from your SQL code in MySQL and pasted into a single submission file, and

2. Screenshots of the resultant tables which are to be pasted into your submission file immediately after the SQL code for that query.

3. Typing or manually drawing the results is NOT acceptable

Assessment item 4

Rationale

Covering all topics, this assessment task has been designed to assess your ability to:

apply database theory to the design and implementation of relational databases;

analyse and model business database requirements using Entity Relationship Diagrams; analyse a database design and apply Normalisation theory and techniques;

implement a database design using Structured Query Language (SQL); query a database using SQL.

Requirements

The examination consists of:

Multiple choice questions,

short and long answer questions.

The examination is a Closed book examination.

Reference no: EM131211674

Questions Cloud

Equilibrium of a perfect competitive model : With the help of a well-illustrated diagram, explain how the long-run equilibrium of a perfect competitive model is achieved in an industry. Using an appropriate diagram, illustrate the profit maximizing output for a monopolistic firm.
How many basis points the cash rate should be changed : Your report should contain an explicit recommendation to either increase, decrease or sustain the prevailing cash rate. Your recommendation for an increase or decrease should indicate by how many basis points the cash rate should be changed.
Defining managerial economics by reffering two economists : Defining managerial economics by reffering two economists, using the positive approach. discuss by using specific examples the purpose of economic analysis and use of economic model.
Computation can be simulated on a two-tape turing machine : By analogy with the construction given in Section 3.9.7, show that every deterministic T-step multi-tape Turing machine computation can be simulated on a two-tape Turing machine in O(T log T) steps.
Create an erd that shows the entities and attributes : Create an ERD that shows the entities, attributes, relationships, cardinality and optionality that describe the booking of a room by a guest. This ERD is to be labelled ERD 1 - Add the entities, attributes, relationships, cardinality and optionalit..
Prepare the journal entry to record interest revenue : The Bradford Company issued 10% bonds, dated January 1, with a face amount of $50 million on January 1, 2013 to Saxton-Bose Corporation. The bonds mature on December 31, 2022 (10 years). For bonds of similar risk and maturity, the market yield is 12%..
How to restore participating and self-support : In his book, Rewarding Work: How to Restore Participating and Self-Support to Free Enterprise (Harvard University Press, 197), economist Edmund Phelps offers this plan to help the working poor: apply tax credits for "qualified employers" or hire d..
What are his deductions for schedule : Nathan Cohen , age 45, is a single taxpayer who lives at 2245 Mardel St., San Jose, CA 95130. His social security number is 351-42-1961. Nathan’s earnings and withholdings as a marketing director at a high-tech company for 2015 are: You do not have t..
Problem regarding the monetary supply half : Would having monitor supply twice as large as it usually is make trade twice as easy? Would having monetary supply half as much make trade half as easy? Explain

Reviews

len1211674

9/19/2016 2:28:10 AM

The SQL statements accurately retrieve and format all the required information using concise and correct SQL syntax. Accurate and w ell­defined explanation of all the integrity constraints to be used and reasons for their use, w ithout errors, is provided w ith evidence of synthesized application of concepts. Comprehensive explanation of use of integrity constraints to improve query performance, w ith evidence of synthesized application of concepts. The SQL DDL statements accurately create new tables, w ith all correct integrity constraints using concise and correct SQL syntax.

len1211674

9/19/2016 2:27:24 AM

Task Draw a dependency diagram to show the functional dependencies in the Home Library relation Decompose the Home Library relation into a set of 3NF relations Draw a relational schema for each of the 3NF relations and show the referential integrity constraints HDThe dependency diagram accurately identifies and correctly show s all PKs and all functional, partial, and transitive dependencies The set of relations is in 3NF and accurately identifies all PKs and all the relevant attributes The relational schema accurately describes each entity and correctly show s all of the referential integrity constraints

len1211674

9/19/2016 2:26:02 AM

ERD 1: Booking Create an ERD that accurately represents all entities, their relationships w ith both cardinality and optionality correctly described and all Primary Keys and Foreign keys identified ERD 2: Dog booking Correctly add additional entities, relationships, Primary and Foreign keys w ith all cardinality and optionality correctly described to existing ERD to correctly reflect the additional business rule ERD 3: Breakfast Correctly add additional entities, relationships, Primary and Foreign keys w ith all cardinality and optionality correctly described to existing ERD to correctly reflect the additional business rule ERD 4: Number of stays Correctly add additional entities, relationships, Primary and Foreign keys w ith all cardinality and optionality correctly described to existing ERD to correctly reflect the additional business rule

Write a Review

Database Management System Questions & Answers

  Database and data warehousing design

This assignment consists of two (2) sections: a design document and a revised project plan. You must submit both sections as separate files for the completion of this assignment. Label each file name according to the section of the assignment it i..

  Describe a database and its various elements

Describe a database and its various elements. Define Primary Key, foreign key, and metadata.

  Create the primary key and foreign keys using a uml class

In order to move forward, the local university will need to develop a data model that will retain student records and perform various data extract transform and load (ETL) processes.

  Implementing a database management system

They have asked you to write a business case (search term business case template) to explain the justification for implementing a database management system to improve business intelligence within the company

  List and describe the different types of databases

What is the role of a DBMS, and what are its advantages? What are its disadvantages? List and describe the different types of databases. What are the main components of a database system?

  Build the physical model

She's come to you for questions regarding connectivity to the Oracle database, which method would you advise her to use to connect to the Oracle database?

  Use sql to create and drop tables.

Include the SQL statements and screenshots of your new tables in the paper.

  Create data dictionary that includes description of content

Create a data dictionary that includes the a description of the content for each field, The data type of each field, The format the data will be stored as in the field and The range of value for the field.

  Create a schema that support companys business and processes

Create a schema that supports the company's business and processes. Explain and support the database schema with relevant arguments that support the rationale for the structure.

  Create a form called customers

Create a form called "Customers" that allows the owners to enter data into the CUSTOMER and CUSTOMER RECORD tables. You can choose the design (aesthetics), however, locate an appropriate graphic to include on the form. All controls must be aligned..

  Eplain how you can use a cve number to learn more about

1- when you should test web applications for known vulnerabilities? provide at least two examples using the sdlc

  What is the role of a dbms

What is the role of a DBMS, and what are it advantages? What are its disadvantages?

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