Database Concepts (7th Edition)
Database Concepts (7th Edition)
7th Edition
ISBN: 9780133544626
Author: David M. Kroenke, David J. Auer
Publisher: PEARSON
Expert Solution & Answer
Book Icon
Chapter 5, Problem 5.18RQ

Explanation of Solution

One-to-many relationship (1:N):

  • One-to-many relationship is one of the types of binary relationship that refer to the relationship between two entities which means one parent field or record can be associated with one or more child field or record.
  • In a one-to-many relationship (1:N), a parent is a row on the one side of 1:N, while a child is a row on the many side of 1:N which means one parent may contains many child.

Reason for placing the key in the child table which belongs to parent table:

  • The parent relation is the “one” and the child relation is “many” in 1:N relationship. An attributes in a parent relation contain only one value.
  • If the key belonging to the child was placed in the parent table, then the design should not be used to represent many side of the 1:N relationship...

Blurred answer
Students have asked these similar questions
Note that primary keys are in BOLD. Note also that attributes with the same name in different tables are foreign keys. For example, doctorID in the Treatment table is a foreign key that refers to the Doctor table. Doctor(doctorId:integer, specialtyID:integer, firstName:varchar(20), lastName:varchar(20), salary:numeric(11,2)) Specialty(specialtyID:integer, specialtyName:varchar(20), specialtyCost:numeric(11,2)) Treatment(doctorId:integer, patientSSN:integer, dateTreated:date, costOfTreatment:numeric(11,2)) Patient(patientSSN:integer, firstName:varchar(20), lastName:varchar(20), street:varchar(30), city:varchar(15),  state:char(2),zipCode:integer(5))   2.3) Write an SQL statement to increase the cost of all Specialty treatment by 2.5%               2.4) Write a SQL statement to delete all treatment rows that were done before 2015 and cost less than $500.         2.5) Write an SQL statement to select all Specialties where the specialtytName has a null value
Indicate dependences and their type.
You have the following tables:   APARTMENTS (ADDRESS, CITY, STATE, RENTER_ID, RENTER_LAST_NAME) RENTERS (RENTER_ID, FIRST_NAME, LAST_NAME)   What is the primary key for the APARTMENTS table? (It may be a composite key involving 2 or more fields) What are the foreign keys, if any?   What is the primary key for the RENTERS table? What are the foreign keys, if any? What field in RENTERS can be eliminated so that the RENTERS table is normalized?
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Oracle 12c: SQL
Computer Science
ISBN:9781305251038
Author:Joan Casteel
Publisher:Cengage Learning
Text book image
CMPTR
Computer Science
ISBN:9781337681872
Author:PINARD
Publisher:Cengage
Text book image
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
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781305627482
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning