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

  Value of origin for each cluster

What are the probabilities calculated for each value of origin for each cluster? Does changing the Max Depth a?ect the results in any way?

  Complete the top view of the block

Create the front and right-side views of the block shown in Fig. 12-16. Then, using the horizontal line above the front view as a basis, complete the top view of the block.

  Explain the difference between a virus and a worm

Explain the difference between a virus and a worm. Describe what a Trojan Horse and a Logic Bomb are.

  Find the cost per incident and frequency of occurrence

How might XYZ Software Company arrive at the values in the above table? For each entry, describe the process of determining the cost per incident and frequency of occurrence.

  The saas solution uses a multi-tenant architecture.

Your manager has asked you to investigate a Customer Relationship Management (CRM) solution offered as COTS software for in-house installation and as a Software as a Service Cloud solution. Assume the SaaS solution uses a multi-tenant architecture.

  Normally distributed with a population standard deviation

The heights were recorded for a Simple Random Sample of 270 freshmen. The mean of this sample was 66.5 inches. The heights are known to be Normally Distributed with a population standard deviation of 5.1 inches. Round answers to one decimal plac..

  Algorithm for ordering

Assuming S is represented by an array, give a linear-time in-place algorithm for ordering S so that all the blue elements are listed before all the red elements. What is the running time of your method?

  Write subroutine in marie assembly that multiplies two value

Write a subtoutine in MARIE assembly that multiplies two values where the arguments for this subroutine are two pointers (each pointer pointing to a value). The routube, multiply (a,b), performs *a x *b where a's value is the address storing the valu..

  Find speedup gain of using simd computer over sisd computer

If both SISD and SIMD machines run at same clock speed, determine the speedup gain of using the SIMD computer over the SISD computer?

  Determine the net radiation exchange between the surfaces

Calculate the net radiation transfer to surface A2 per unit length of the surface and determine the temperature of the insulated surface A3.

  Performance of computer if main memory speed remains same

Using a faster processor chip result in corresponding increase in performance of computer even if main memory speed remains the same.

  Difficult to represent and process than integers

How and why are real numbers more difficult to represent and process than integers?

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