Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the following set of tables describing students and school clubs: Student SID Name Gender Status GPA 100 Bill M Fr 3.3 101 John M

  1. Consider the following set of tables describing students and school clubs:

Student

SID

Name

Gender

Status

GPA

100

Bill

M

Fr

3.3

101

John

M

So

2.1

102

Sue

F

Jr

3.2

103

Mary

F

Sr

3.6

105

Jane

F

Fr

2.9

Clubs

CID

Name

MtgRm

1

Chess

144

2

Debate

145

ClubMemberships

CID

SID

1

100

1

200

1

300

2

300

2

400

  1. Assuming that SID and CID are unique identifiers, what are likely primary keys for the Student and Clubs tables?
  2. What is the primary key for the ClubMemberships table?
  3. What are foreign keys necessary for this set of tables in order to ensure that only registered students can be in clubs and students can only join registered clubs?
  4. Can you add the following tuple to the ClubMemberships table based on your foreign keys: (3, 200) Why or why not?
  5. Can you add the following tuple to the ClubMemberships table based on your foreign keys: (1, 101) Why or why not?

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

Professional IPhone And IPad Database Application Programming

Authors: Patrick Alessi

1st Edition

0470636173, 978-0470636176

More Books

Students also viewed these Databases questions