A database includes information on people and clubs. Each person identified by an integer and has their name, and phone numbe recorded. Each club is identified by a name and the city it is located in The relationship between club and person is 1:N. A person must be member of only one club. A club may include zero or more people. (a) Write SQL CREATE TABLE statements for the tables in th problem statement above. Justify your choices of primary an foreign keys.

A Guide to SQL
9th Edition
ISBN:9781111527273
Author:Philip J. Pratt
Publisher:Philip J. Pratt
Chapter2: Database Design Fundamentals
Section: Chapter Questions
Problem 11RQ
icon
Related questions
Question
A database includes information on people and clubs. Each person is
identified by an integer and has their name, and phone number
recorded. Each club is identified by a name and the city it is located in.
The relationship between club and person is 1:N. A person must be a
member of only one club. A club may include zero or more people.
(a) Write SQL CREATE TABLE statements for the tables in the
problem statement above. Justify your choices of primary and
foreign keys.
Transcribed Image Text:A database includes information on people and clubs. Each person is identified by an integer and has their name, and phone number recorded. Each club is identified by a name and the city it is located in. The relationship between club and person is 1:N. A person must be a member of only one club. A club may include zero or more people. (a) Write SQL CREATE TABLE statements for the tables in the problem statement above. Justify your choices of primary and foreign keys.
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
SQL Query
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
Principles of Information Systems (MindTap Course…
Principles of Information Systems (MindTap Course…
Computer Science
ISBN:
9781305971776
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781285196145
Author:
Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:
Cengage Learning
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning