Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please answer all questions, thank you! please also show the oracle parts where it needs the work done in oracle You have been given the

image text in transcribed

please answer all questions, thank you!

please also show the oracle parts where it needs the work done in oracle

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 SESSIONS (SessionID, DayAndTime, NumberOfPlaces, ClassName, VenueName, InstructorName) Based on the table specifications provided, answer the following questions 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 a. b. Give the SQL to create the SESSIONS 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. 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. c. Give the SQL to create a constraint to the SESSIONS 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 d. Give the SQL to record the fact that all the sessions of the GymFit 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.) e. Note: by convention table names are singular, but as SESSION is an Oracle reserved word, we use SESSIONS here.)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro Database Migration To Azure Data Modernization For The Enterprise

Authors: Kevin Kline, Denis McDowell, Dustin Dorsey, Matt Gordon

1st Edition

1484282299, 978-1484282298

More Books

Students also viewed these Databases questions

Question

What do Dimensions represent in OLAP Cubes?

Answered: 1 week ago