Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Homework Help/Study Tips Expert

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.)

Homework Help/Study Tips, Others

  • Category:- Homework Help/Study Tips
  • Reference No.:- M93129181

Have any Question?


Related Questions in Homework Help/Study Tips

Question a profile interview someone you do not know or do

Question: a. Profile: Interview someone you do not know or do not know well. Find an "angle" that will make this person unique or interesting to readers and focus on this angle in your profile. (For an example, read "Vic ...

Ethical communication for businessessay topic ethical

Ethical Communication for Business Essay Topic: "Ethical Communication is an essential part of business" Discuss this statement using three (3) ethical communication issues as examples. The abstract, essay title, paragra ...

Answer the questionsbook -intro to law amp legal system of

Answer the questions Book -INTRO TO LAW & LEGAL SYSTEM OF THE US BURNHAM Publisher: WEST, ISBN: 9781634602075, Edition: 6TH , Copyright Year: 2016 Question 1 Describe the bases for federal subject matter jurisdiction and ...

Question banks industries has experienced rapid expansion

Question: BANKS Industries has experienced rapid expansion in the past several years. However, it appears that the HR department is just now catching up by revising policies and rapidly implementing changes. One of the n ...

Question project overviewpurpose the purpose of this

Question: Project Overview Purpose: The purpose of this semester-long Project is to demonstrate that you possess the knowledge, skills, and other appropriate capabilities to design a detailed, comprehensive, and plausibl ...

Question using word write an original brief essay of 300

Question: Using WORD, write an ORIGINAL brief essay of 300 words or more: • Find a DoS attack that has occurred in the last six months • You might find some resources at www.f-secure.com. • Note how that attack was condu ...

Part i conduct and analyze your pilot surveyinstructions

Part I: Conduct and Analyze Your Pilot Survey Instructions: Before conducting a large survey to study people's beliefs and opinions, researchers utilize a pilot survey (a trial run) to test and improve their survey forma ...

Question one of the main objectives of this course is for

Question: One of the main objectives of this course is for you to examine your ethnic heritage, cultural identity, values, and assumptions and analyze their impact on the provision of culturally competent services; there ...

Assignment annotated bibliographybefore you can begin to

Assignment : Annotated Bibliography Before you can begin to write a literature review, you must spend a substantial amount of time reviewing the literature to locate the articles that are both relevant to the topic of th ...

Question 1what questions do you have about the overarching

Question: 1. What questions do you have about the overarching Unit 5 assignment? Although not due until the end of the class, it is important that you begin planning for this project early in the course. What are your in ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As