Discuss about the specifications of a simple database

Assignment Help Other Subject
Reference no: EM132141716

Question: You have been given the following specifications of a simple database for keeping track of exercise sessions and their instructors at a fitness centre (note that primary keys are shown underlined, foreign keys in bold).

You should run your SQL to demonstrate that it works correctly, and paste in the statements used plus the output from Oracle.

INSTRUCTOR (InstructorName, InstructorEmail, Biography, Specialty)

TIMETABLE (SessionID, DayAndTime, NumberOfPlaces, ClassName, VenueName, InstructorName)

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

a. Give the SQL to create the INSTRUCTOR 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 TIMETABLE table. Use appropriate data types, and include the primary key and foreign key constraints. Referential integrity should be set such that if an Instructor is deleted from the database, any sessions that she or he is running will also be deleted.

c. Give the SQL to add your own record to the INSTRUCTOR table. Include your name and email, and make up appropriate entries for your Biography and Specialty.

d. Give the SQL to create a constraint to the TIMETABLE table to restrict the possible venues to the following 5: Main Group Fitness Studio, Indoor Cycle Studio, Mind and Body Studio, 25m Lap Pool, Warm Water Pool.

e. Give the SQL to record the fact that all the sessions of the CycleMax class have increased their number of places by 5. (Note: you don't need to add any actual data to run the query, although you may do so if you wish.)

Reference no: EM132141716

Questions Cloud

Calculate the marginal rate of technical substitution : If the firm currently has 10 units of capital (K) and 10 units of labor (L), then calculate the Marginal Rate of Technical Substitution (MRTSLK).
Explain strategies that effectively support students : One example of a resource you can use to help plan for children learning a second language, with a summary and justification of your choice.
Spirit important to market entry or market expansion : Why are innovation and entrepreneurial spirit important to market entry or market expansion?
Mozzarella cheese to be shipped directly from italy : Charlie's Pizza orders all of its pepperoni, olives, anchovies, and mozzarella cheese to be shipped directly from Italy.
Discuss about the specifications of a simple database : You have been given the following specifications of a simple database for keeping track of exercise sessions and their instructors at a fitness centre.
Find the reorder point necessary : Find the reorder point necessary to provide a 95 percent service probability. If she does so, what will the new service probability be?
Determine three types of computer crime : Conduct research to determine three types of computer crime. Please provide a detailed description for all crimes, and share an example.
Discuss the different costs involved in quality management : Discuss the different costs involved in quality management. Discuss the tools that can be used in solving quality management problems.
Lettuce should the supermarket purchase tomorrow : How many boxes of lettuce should the supermarket purchase tomorrow?

Reviews

Write a Review

Other Subject Questions & Answers

  Why did women issues suddenly become so prominent

Why did women's issues suddenly become so prominent in American culture? BEFORE 1877

  What symptoms would a client with schizophrenia exhibit

Create a 1,200-1,500-word safety plan for a client similar to Ted, who had been diagnosed with schizophrenia that addresses potential depression and suicidality

  Inform the public about various indoor sources of air

Suppose you have just been hired by a consultancy firm to work on a campaign to inform the public about various indoor sources of air pollution. Although you will be expected to learn about many different pollutants, your primary focus will be asbest..

  Summarize characteristics of approach of research article

Summarize the characteristics of the approach of the research article you chose during your literature search. Summarize the research article.

  Prepare next years financial plan and operational budget

Prepare next year's financial plan and operational budget.How the new services will impact revenue.

  Identify some of the significant challenges you believe

Identify some of the significant challenges you believe you might face when it comes to suggesting and seeing innovations through in the organizations.

  Word entrepreneur means one who takes action

Since the word entrepreneur means one who takes action, what does his last sentence mean for a world where currently 2 billion people are online? And what does this mean for the future when 4 billion are expected to be online by 2050?

  Does economic circumstance and culture play any role

Does economic circumstance and/or culture play any role in access to information? How is information disseminated? What happens when important information.

  Carcinoid heart disease and coarctation of the aorta

A 40 year old man is seen because of a long history of slowly developing congestive heart failure.  His blood pressure is normal.  Coronary artery angiography reveals no vascular disease.  The white blood cell count, differential and ESR are normal.

  Which of the different jewish responses to modern science

Which of the different Jewish responses to modern science and scholarship make sense to you, and why? Which response do you think the religious tradition.

  Describe why it is important to consider reliability

In regards to Psychology describe Reliability & Validity in your own words. Describe why it is important to consider reliability and validity when using a personality measure for practices such as counseling and job placement.

  Identify two contributing factors to childhood obesity

List three (3) ways the nurse could intervene to promote the nutrition and weight status objectives for Healthy People 2020.

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