Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

[ANSWER HAS TO BE IN RELATIONAL ALGEBRA NOT SQL] This task asks us to write the relational schema, so there is no real data in

image text in transcribed

[ANSWER HAS TO BE IN RELATIONAL ALGEBRA NOT SQL]

This task asks us to write the relational schema, so there is no real data in this table. This is not asking us to write the SQL, it's relation schema.

Exercise 1 (Relational Algebra) [25 points] Consider the following relations for gyms. The primary keys are underlined. All attributes are of type string if not indicated otherwise. Customer (customer_ID, customer_name, SSN, customer_age: integer, customer_gender, address) Gym (gym name, location, type, membership_price: integer) o The values for the column named type are with Pool or without Pool. Guest (guest_name, customer ID, guest_age: integer, guest_gender) The gyms allow each customer to have guests associated with him/her. Member (customer ID, gym name) 1. [5 points) Find the names of gyms that have swimming pools in Gainesville. 2. [5 points] Find the names of guests who are brought by young customers (age

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

Build It For The Real World A Database Workbook

Authors: Wilson, Susan, Hoferek, Mary J.

1st Edition

0073197599, 9780073197593

More Books

Students also viewed these Databases questions

Question

Q.No.1 Explain Large scale map ? Q.No.2 Explain small scale map ?

Answered: 1 week ago

Question

1. Signs and symbols of the map Briefly by box ?

Answered: 1 week ago

Question

2. What, according to Sergey, was strange at this meeting?

Answered: 1 week ago

Question

3. Are our bosses always right? If not, what should we do?

Answered: 1 week ago