Simple database for keeping track of venues

Assignment Help Basic Computer Science
Reference no: EM131512799

You have been given the following specifications of a simple database for keeping track of venues and events at the Olympics (note that primary keys are shown underlined, foreign keys in bold).

You should run your SQL to demonstrate that it works correctly, and paste the queries into your assignment document.

VENUE (VenueName, Location, Capacity)

EVENT (EventName, ScheduledStart, VenueName)

Based on the table specifications provided, answer the following questions. Each question is worth 3 marks.

a. Give the SQL to create the VENUE table. Choose appropriate data types. None of the attributes should be allowed to be null. Include the primary key constraint.

b. Give the SQL to create the EVENT table. Use appropriate data types, and include the primary key and foreign key constraints. Referential integrity should be set such that a venue may not be deleted from the database if there is an event recorded in it.

c. Give the SQL to add the Maracana Stadium to the VENUE table. The stadium is located in Avenida Maracana and has a capacity of 78,838.

d. Give the SQL to add an attribute Sport to EVENT. (Possible values include Athletics, Swimming.

Reference no: EM131512799

Questions Cloud

What is the maximum amount it would be worth to shareholders : What is the maximum amount it would be worth to shareholders to elicit high CEO effort all of the time rather than low CEO effort all of the time?
Safaris come in a wide range of versions : People often travel to Africa to go on safaris. Safaris come in a wide range of versions. Some are very rough and basic
Career options security professionals can pursue : Describe four types of career options security professionals can pursue, including a brief description of their duties.
Determine the cross price elasticity of demand : Determine the price elasticity of demand. Determine the cross price elasticity of demand. How would you characterize the demand for haddock?
Simple database for keeping track of venues : You have been given the following specifications of a simple database for keeping track of venues and events at the Olympics (note that primary keys are shown.
Athlete competes for a particular country : A database records information about athletes competing at the Olympics. An athlete competes for a particular country in one or more events.
Calculate the value of the bond : What is the relationship between the value of the bond today and the Yield to Maturity - what is the value of the growth (subtract a from b)?
Relational algebra using given relations : Please answer following in Relational Algebra using given relations. Please list all possible combinations if apply
Trend in the area of telecommunications : Research and select a current trend in the area of telecommunications. Prepare a 10-15 page paper in Microsoft Word AMU approved APA format

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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