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

  What rules have to be enforced based on entity type

What rules would have to be enforced based on entity type? Choose one entity type and discuss what enforcement is needed by the database or application.

  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.

  Entity-relationship diagram

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

  Describe the features of a database management system

Describe the features of a Database Management System (DBMS) and its use within an organization.

  Write procedure to construct character frequency table

Write the procedure named Get_frequencies which constructs character frequency table. Input to procedure must be a pointer to the string, and pointer to array of 256 doublewords.

  Drawing active directory hierarchy in terms of forests

Draw Active Directory hierarchy in terms of forests, trees, domains, organizational units, and sites which are most suitable for this company and their security concerns.

  Sketch dfsa for identifiers-contain only letters and digits

Sketch a DFSA for identifiers which contain only letters and digits, where identifier should have at least one letter, but it need not be first character.

  Characteristics of relational database management system

Describe the characteristics of a Relational Database Management System (RDBMS).

  Write benefits of using dbms to manage data in program

Describe briefly what are the main benefits of using DBMS to manage data in program applications involving extensive data access.

  Complete information-level design for set of requirements

A database at a college is required to support the following requirements. Complete the information-level design for this set of requirements. Determine any constraints you need that are not stated in the problem.

  How to use spool command

How to interactively query a database by using SQL statements and SQL*PLUS commands and how to use spool command to save an interactive session within SQL*PLUS.

  Triggers important in database systems

What are triggers used for, and why are they important in database systems? Provide an example of a situation where a trigger would be appropriate.

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