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

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

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