Create appropriate primary and foreign key constraints

Assignment Help Database Management System
Reference no: EM13333021

In this assignment you will build a small database to support the needs of a company called Concertina that organises concerts in the UK. To do this you will need to create tables to support the following scenario.

Concertina run repeated scheduled concerts involving a single principal artist (or group) in large venues within the UK. These concerts have a name, a duration of 2,3,4,or 5 hours, a type of either classical, rock, or pop and a cost that varies between £30 and £500. The concerts are repeatedly run as events in a variety of venues. So, for example, the ABC concert could run a number of times in different venues. Each of these runs is called an event for that particular concert. The date of each event and the venue are recorded. Customers book onto the events and Concertina need to record the customer name, gender, telephone number, and address. Each time a customer attends an event, their time of arrival is recorded, and if they have parked their car in the official car park, the registration number of the vehicle is also recorded. Customers will also give an evaluation each time they attend an event (the evaluation is a number from 0 to 5). Concertina need to record the evaluation from each customer each time they attend an event. It is not a requirement that all events have customers registered on them, and it is also not required that every customer has to have attended a concert. Each event is held at an approved venue and each venue has a name, a maximum capacity (between 1,000 and 60,000 people) and a postcode.

1. Construct a simple entity model based on the above scenario.

Concertina have produced a first draft model of the above scenario as follows

Database Server Management Assessment (continued)

You should assume this model is a reasonable, but incomplete, draft and use it to develop a final improved entity model.

Using your improved and complete entity model, construct a set of tables with suitably defined columns to support this scenario.

 


2. Populate the tables with appropriate test data, bearing in mind the following :

a. There may be some concerts for which events have yet to be arranged.
b. There may be some customers who have yet to book on an event.
c. All events are uniquely identified by a single key column called event_id
d. Records of customers attending concerts (known as a booking) are identified by a combination of foreign keys (not by a single column surrogate key)
e. There may be some venues that are yet to be allocated to an event.

Hint: In order to keep the amount of test data to a minimum, we will assume that the company is unlikely to run with more than six different concerts and that the number of customers about which they have details is less than 11.

Take a look at the query specifications in question 3. You will need to have data values that are relevant to these queries. BUT the design of your tables and test data should not be compromised merely to support just these queries.

The creation of a good, representative set of test data is very important and is worth 15 marks

3. Create appropriate primary and foreign key constraints on the tables.

 

4. Develop a set of queries as follows, showing all output that they produce :

a. Find details of all concerts being held in York

b. Find the concert that runs the most number of times.

c. Find the total number of customers attending each type of concert.

Reference no: EM13333021

Questions Cloud

What would be your weight on the moon : The mass of the Moon is 7.18X10^22 kg and radius is 1738 km. If your mass is 90 kg, what would be your weight (gravitational force of attraction) on the Moon
Determine what is the present value of an investment : An investment will pay you $75,000 in nine years. Assume the appropriate discount rate is 6 percent compounded daily. What is the present value
Find the energy of one photon : For a very simple model, consider a solid iron sphere 2.00 cm in radius. Assume the temperature is always uniform throughout its volume. Find the energy of one photon
Explain what is the osmotic pressure : What is the osmotic pressure, in atm, of a solution formed by dissolving 17.2 g of AlCl3 in 0.588 L of water at 57.4 oC? (R = 0.0821 L-atm/mol-K; 0 oC = 273 K)
Create appropriate primary and foreign key constraints : Take a look at the query specifications in question 3. You will need to have data values that are relevant to these queries. BUT the design of your tables and test data should not be compromised merely to support just these queries.
What is the maximum potential difference between the disks : Two 4.9 cm× 4.9 cm metal plates are separated by a 0.19-mm-thick piece of Teflon. What is the maximum potential difference between the disks
Determine how much would the company have to invest today : Assume that Window Printing, Inc. decides to wait six (3) months to make the investment due to an unexpected cash expenditure but still needs the new printing press in six (6) months.
What was the initial horizontal velocity : Larry tosses a volleyball to his wife, Lise, who catches it at the same height from which it was tossed. what was the initial horizontal velocity
Evaluate the volume the gas will occupy : A fixed quantity of gas at 22 deg C exhibits a pressure of 754torr and occupies a volume of 5.52L . Calculate the volume the gas will occupy if the pressure is increased to 1.89atm while the temperature is held constant.

Reviews

Write a Review

 

Database Management System Questions & Answers

  Decompose relation into relations which are in bcnf

it is not essential to give violations which have more than one attribute on right side. Decompose the relation, as essential, into collection of relations which are in BCNF.

  Describe the various network implementations

The marking scheme, which is given in detail below, particularly rewards the way in which you relate your specific proposals to the material presented in the Course.

  Prepare a dfd and context diagram for the system

Journal entries have to be reconciled with the spreadsheet on a daily basis - Prepare a context diagram for the system and also prepare a diagram 0 DFD for the system

  Write down responsibilities of database administrator

Write down the responsibilities of the database administrator (DBA)? Could you outline tasks that he/she has to perform, and what could be consequences if these matters are not handled?

  Explain how to create query in access query wizard

Describe how to create a query in Access Query Wizard equilvant to the query: SELECT first, last, department, hours FROM payroll WHERE hours>.

  Create a decision table that describes movement of inventory

Name four attributes that you can use to define a data flow in the grocery inventory information system.

  Examine use of database applications in organization

Prepare a memorandum examining use of databases in organization. Write database applications are used: Microsoft Access, DB2, Oracle, etc.

  Create database for university to monitor students

A database is to be created for University to monitor students' progress throughout their course of study. Students are reading for degree (such as BTech, BTech(Hons) MCA, etc) within framework of modular system.

  Draw inheritance hierarchy to represent shoe object

Draw an inheritance hierarchy to represent a shoe object. The base class should have derived classes of Dress Shoes, Tennis Shoes and Boots.

  Create a database from scratch

Create a database from scratch that contains, at a minimum, the elements listed below

  Provide the sql to amend the original table design

You have been given the following specifications of a simple database for a netball association that keeps record of players, teams and matches.

  What are the data entities of this enterprise

Consider a student club or organization in which you are a member. What are the data entities of this enterprise? List and define each entity

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