SlideShare a Scribd company logo
1. The Company database attaches each Dependent to exactly one Employee by using a primary
key of ESSN (the ID of the employee who is the guardian for this dependent) and the first name
of the dependent. Suppose we want to make the key more efficient by adding a SERIAL attribute
and making that the new PRIMARY KEY. What is an error we have to watch out for?
The current design of Dependent is: ESSN, dependent_name, sex, bdate, relationship, where the
key is the pair (ESSN, dependent_name), and ESSN is also a foreign key referencing the
Employee table
a) There are no errors to worry about
b) The new key might eventually get big enough to have a value equal to an SSN
c) The ESSN could be NULL
d) There could be more than one dependent of an employee with the same first name
2. For the best way to represent user and account information where a user can have multiple
accounts, as the class has discussed these things so far,
a) There should be separate User and Account tables where the Account table has a foreign key
to the User table
b) There should be separate User and Account tables where the User table has a foreign key to
the Account table
c) There should be a single UserAccount table with all information about users and accounts
d) There should be separate User and Account tables, plus a third table with foreign keys to both
the Account and the User tables

More Related Content

More from StevenLCvWalkera

1- What do you think is really bothering the workers- 2- What kinds.pdf
1- What do you think is really bothering the workers-    2- What kinds.pdf1- What do you think is really bothering the workers-    2- What kinds.pdf
1- What do you think is really bothering the workers- 2- What kinds.pdf
StevenLCvWalkera
 
1- What are the main data sources for the COVID-19 data collection- In.pdf
1- What are the main data sources for the COVID-19 data collection- In.pdf1- What are the main data sources for the COVID-19 data collection- In.pdf
1- What are the main data sources for the COVID-19 data collection- In.pdf
StevenLCvWalkera
 
1- what are the different types of economy-2- Research about Adam Smit.pdf
1- what are the different types of economy-2- Research about Adam Smit.pdf1- what are the different types of economy-2- Research about Adam Smit.pdf
1- what are the different types of economy-2- Research about Adam Smit.pdf
StevenLCvWalkera
 
1- Understanding the implications of taxes on welfare The following gr.pdf
1- Understanding the implications of taxes on welfare The following gr.pdf1- Understanding the implications of taxes on welfare The following gr.pdf
1- Understanding the implications of taxes on welfare The following gr.pdf
StevenLCvWalkera
 
1- The SRY gene in the Y chromosome controls the development of many c.pdf
1- The SRY gene in the Y chromosome controls the development of many c.pdf1- The SRY gene in the Y chromosome controls the development of many c.pdf
1- The SRY gene in the Y chromosome controls the development of many c.pdf
StevenLCvWalkera
 
1- The oldest portions of any crystal- which formed first- are found _.pdf
1- The oldest portions of any crystal- which formed first- are found _.pdf1- The oldest portions of any crystal- which formed first- are found _.pdf
1- The oldest portions of any crystal- which formed first- are found _.pdf
StevenLCvWalkera
 
1- The similarities in the mitochondrial DNA and some proteobacteria i.pdf
1- The similarities in the mitochondrial DNA and some proteobacteria i.pdf1- The similarities in the mitochondrial DNA and some proteobacteria i.pdf
1- The similarities in the mitochondrial DNA and some proteobacteria i.pdf
StevenLCvWalkera
 
1- The most common nosocomial infection in patients admitted to the ho.pdf
1- The most common nosocomial infection in patients admitted to the ho.pdf1- The most common nosocomial infection in patients admitted to the ho.pdf
1- The most common nosocomial infection in patients admitted to the ho.pdf
StevenLCvWalkera
 
1- The leg wrappings of the Barbarians for warmth- combined with the t.pdf
1- The leg wrappings of the Barbarians for warmth- combined with the t.pdf1- The leg wrappings of the Barbarians for warmth- combined with the t.pdf
1- The leg wrappings of the Barbarians for warmth- combined with the t.pdf
StevenLCvWalkera
 
1- The cells responsible for making inhibin are- (be specific-male AND.pdf
1- The cells responsible for making inhibin are- (be specific-male AND.pdf1- The cells responsible for making inhibin are- (be specific-male AND.pdf
1- The cells responsible for making inhibin are- (be specific-male AND.pdf
StevenLCvWalkera
 
1- the arterial system has one of these- the venous system has two Key.pdf
1- the arterial system has one of these- the venous system has two Key.pdf1- the arterial system has one of these- the venous system has two Key.pdf
1- the arterial system has one of these- the venous system has two Key.pdf
StevenLCvWalkera
 
1- Suppose we let imports be a positive function of Y- That would mak.pdf
1- Suppose we let imports be a positive function of Y-  That would mak.pdf1- Suppose we let imports be a positive function of Y-  That would mak.pdf
1- Suppose we let imports be a positive function of Y- That would mak.pdf
StevenLCvWalkera
 
1- Suppose that for an entity E- there are two candidate keys- A and B.pdf
1- Suppose that for an entity E- there are two candidate keys- A and B.pdf1- Suppose that for an entity E- there are two candidate keys- A and B.pdf
1- Suppose that for an entity E- there are two candidate keys- A and B.pdf
StevenLCvWalkera
 
1- Show that L-{anbm-n-m} is a deterministic context-free language-.pdf
1- Show that L-{anbm-n-m} is a deterministic context-free language-.pdf1- Show that L-{anbm-n-m} is a deterministic context-free language-.pdf
1- Show that L-{anbm-n-m} is a deterministic context-free language-.pdf
StevenLCvWalkera
 
1- Select two organizations- which could include the University of Can.pdf
1- Select two organizations- which could include the University of Can.pdf1- Select two organizations- which could include the University of Can.pdf
1- Select two organizations- which could include the University of Can.pdf
StevenLCvWalkera
 
1- Prepgre an income statemert-1- Prepare an income statement-fimen-ma.pdf
1- Prepgre an income statemert-1- Prepare an income statement-fimen-ma.pdf1- Prepgre an income statemert-1- Prepare an income statement-fimen-ma.pdf
1- Prepgre an income statemert-1- Prepare an income statement-fimen-ma.pdf
StevenLCvWalkera
 
1- One way to verify if a system is attacked by a brute-force attack i.pdf
1- One way to verify if a system is attacked by a brute-force attack i.pdf1- One way to verify if a system is attacked by a brute-force attack i.pdf
1- One way to verify if a system is attacked by a brute-force attack i.pdf
StevenLCvWalkera
 
1- One goal of Picchi's book on the Bakairi Indians is Group of answer.pdf
1- One goal of Picchi's book on the Bakairi Indians is Group of answer.pdf1- One goal of Picchi's book on the Bakairi Indians is Group of answer.pdf
1- One goal of Picchi's book on the Bakairi Indians is Group of answer.pdf
StevenLCvWalkera
 
1- Fully compare and contrast Nitrogen and Phosphorus as water quality.pdf
1- Fully compare and contrast Nitrogen and Phosphorus as water quality.pdf1- Fully compare and contrast Nitrogen and Phosphorus as water quality.pdf
1- Fully compare and contrast Nitrogen and Phosphorus as water quality.pdf
StevenLCvWalkera
 
1- Nathaniel was injured in a hunting accident during which a bullet s.pdf
1- Nathaniel was injured in a hunting accident during which a bullet s.pdf1- Nathaniel was injured in a hunting accident during which a bullet s.pdf
1- Nathaniel was injured in a hunting accident during which a bullet s.pdf
StevenLCvWalkera
 

More from StevenLCvWalkera (20)

1- What do you think is really bothering the workers- 2- What kinds.pdf
1- What do you think is really bothering the workers-    2- What kinds.pdf1- What do you think is really bothering the workers-    2- What kinds.pdf
1- What do you think is really bothering the workers- 2- What kinds.pdf
 
1- What are the main data sources for the COVID-19 data collection- In.pdf
1- What are the main data sources for the COVID-19 data collection- In.pdf1- What are the main data sources for the COVID-19 data collection- In.pdf
1- What are the main data sources for the COVID-19 data collection- In.pdf
 
1- what are the different types of economy-2- Research about Adam Smit.pdf
1- what are the different types of economy-2- Research about Adam Smit.pdf1- what are the different types of economy-2- Research about Adam Smit.pdf
1- what are the different types of economy-2- Research about Adam Smit.pdf
 
1- Understanding the implications of taxes on welfare The following gr.pdf
1- Understanding the implications of taxes on welfare The following gr.pdf1- Understanding the implications of taxes on welfare The following gr.pdf
1- Understanding the implications of taxes on welfare The following gr.pdf
 
1- The SRY gene in the Y chromosome controls the development of many c.pdf
1- The SRY gene in the Y chromosome controls the development of many c.pdf1- The SRY gene in the Y chromosome controls the development of many c.pdf
1- The SRY gene in the Y chromosome controls the development of many c.pdf
 
1- The oldest portions of any crystal- which formed first- are found _.pdf
1- The oldest portions of any crystal- which formed first- are found _.pdf1- The oldest portions of any crystal- which formed first- are found _.pdf
1- The oldest portions of any crystal- which formed first- are found _.pdf
 
1- The similarities in the mitochondrial DNA and some proteobacteria i.pdf
1- The similarities in the mitochondrial DNA and some proteobacteria i.pdf1- The similarities in the mitochondrial DNA and some proteobacteria i.pdf
1- The similarities in the mitochondrial DNA and some proteobacteria i.pdf
 
1- The most common nosocomial infection in patients admitted to the ho.pdf
1- The most common nosocomial infection in patients admitted to the ho.pdf1- The most common nosocomial infection in patients admitted to the ho.pdf
1- The most common nosocomial infection in patients admitted to the ho.pdf
 
1- The leg wrappings of the Barbarians for warmth- combined with the t.pdf
1- The leg wrappings of the Barbarians for warmth- combined with the t.pdf1- The leg wrappings of the Barbarians for warmth- combined with the t.pdf
1- The leg wrappings of the Barbarians for warmth- combined with the t.pdf
 
1- The cells responsible for making inhibin are- (be specific-male AND.pdf
1- The cells responsible for making inhibin are- (be specific-male AND.pdf1- The cells responsible for making inhibin are- (be specific-male AND.pdf
1- The cells responsible for making inhibin are- (be specific-male AND.pdf
 
1- the arterial system has one of these- the venous system has two Key.pdf
1- the arterial system has one of these- the venous system has two Key.pdf1- the arterial system has one of these- the venous system has two Key.pdf
1- the arterial system has one of these- the venous system has two Key.pdf
 
1- Suppose we let imports be a positive function of Y- That would mak.pdf
1- Suppose we let imports be a positive function of Y-  That would mak.pdf1- Suppose we let imports be a positive function of Y-  That would mak.pdf
1- Suppose we let imports be a positive function of Y- That would mak.pdf
 
1- Suppose that for an entity E- there are two candidate keys- A and B.pdf
1- Suppose that for an entity E- there are two candidate keys- A and B.pdf1- Suppose that for an entity E- there are two candidate keys- A and B.pdf
1- Suppose that for an entity E- there are two candidate keys- A and B.pdf
 
1- Show that L-{anbm-n-m} is a deterministic context-free language-.pdf
1- Show that L-{anbm-n-m} is a deterministic context-free language-.pdf1- Show that L-{anbm-n-m} is a deterministic context-free language-.pdf
1- Show that L-{anbm-n-m} is a deterministic context-free language-.pdf
 
1- Select two organizations- which could include the University of Can.pdf
1- Select two organizations- which could include the University of Can.pdf1- Select two organizations- which could include the University of Can.pdf
1- Select two organizations- which could include the University of Can.pdf
 
1- Prepgre an income statemert-1- Prepare an income statement-fimen-ma.pdf
1- Prepgre an income statemert-1- Prepare an income statement-fimen-ma.pdf1- Prepgre an income statemert-1- Prepare an income statement-fimen-ma.pdf
1- Prepgre an income statemert-1- Prepare an income statement-fimen-ma.pdf
 
1- One way to verify if a system is attacked by a brute-force attack i.pdf
1- One way to verify if a system is attacked by a brute-force attack i.pdf1- One way to verify if a system is attacked by a brute-force attack i.pdf
1- One way to verify if a system is attacked by a brute-force attack i.pdf
 
1- One goal of Picchi's book on the Bakairi Indians is Group of answer.pdf
1- One goal of Picchi's book on the Bakairi Indians is Group of answer.pdf1- One goal of Picchi's book on the Bakairi Indians is Group of answer.pdf
1- One goal of Picchi's book on the Bakairi Indians is Group of answer.pdf
 
1- Fully compare and contrast Nitrogen and Phosphorus as water quality.pdf
1- Fully compare and contrast Nitrogen and Phosphorus as water quality.pdf1- Fully compare and contrast Nitrogen and Phosphorus as water quality.pdf
1- Fully compare and contrast Nitrogen and Phosphorus as water quality.pdf
 
1- Nathaniel was injured in a hunting accident during which a bullet s.pdf
1- Nathaniel was injured in a hunting accident during which a bullet s.pdf1- Nathaniel was injured in a hunting accident during which a bullet s.pdf
1- Nathaniel was injured in a hunting accident during which a bullet s.pdf
 

Recently uploaded

The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
deeptiverma2406
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
Group Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana BuscigliopptxGroup Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana Buscigliopptx
ArianaBusciglio
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
chanes7
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 

Recently uploaded (20)

The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
Group Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana BuscigliopptxGroup Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana Buscigliopptx
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 

1- The Company database attaches each Dependent to exactly one Employe.pdf

  • 1. 1. The Company database attaches each Dependent to exactly one Employee by using a primary key of ESSN (the ID of the employee who is the guardian for this dependent) and the first name of the dependent. Suppose we want to make the key more efficient by adding a SERIAL attribute and making that the new PRIMARY KEY. What is an error we have to watch out for? The current design of Dependent is: ESSN, dependent_name, sex, bdate, relationship, where the key is the pair (ESSN, dependent_name), and ESSN is also a foreign key referencing the Employee table a) There are no errors to worry about b) The new key might eventually get big enough to have a value equal to an SSN c) The ESSN could be NULL d) There could be more than one dependent of an employee with the same first name 2. For the best way to represent user and account information where a user can have multiple accounts, as the class has discussed these things so far, a) There should be separate User and Account tables where the Account table has a foreign key to the User table b) There should be separate User and Account tables where the User table has a foreign key to the Account table c) There should be a single UserAccount table with all information about users and accounts d) There should be separate User and Account tables, plus a third table with foreign keys to both the Account and the User tables