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

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

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