SlideShare a Scribd company logo
1 of 1
Download to read offline
1. For a Movies database with a Person entity and a Movie entity which have a relationship
Acts_In, suppose we wanted to add a count of the number of movies for each person -- that is,
how many movies has an actor played a role in. How should we model this?
a) Add the count as a regular attribute of the Person entity
b) Add the count as a regular attribute of the Acts_In relationship
c) Add the count as a derived attribute of the Person entity
d) Add the count as a derived attribute of the Acts_In relationship
2. Suppose that for an entity E, there are two candidate keys, A and B. A is a VARCHAR of up
to 20 characters while B is a REAL. The primary key should be:
a) A
b) the pair of A and B
c) B
d) either A or B, there is no meaningful difference without further information

More Related Content

More from aggallerychennai

1- Functions of bone- a- b- c- d- e- f- 2- Types of bone cells- a- (bo (1).pdf
1- Functions of bone- a- b- c- d- e- f- 2- Types of bone cells- a- (bo (1).pdf1- Functions of bone- a- b- c- d- e- f- 2- Types of bone cells- a- (bo (1).pdf
1- Functions of bone- a- b- c- d- e- f- 2- Types of bone cells- a- (bo (1).pdf
aggallerychennai
 
1- Explain what it means to say that an accounting class is not the sa.pdf
1- Explain what it means to say that an accounting class is not the sa.pdf1- Explain what it means to say that an accounting class is not the sa.pdf
1- Explain what it means to say that an accounting class is not the sa.pdf
aggallerychennai
 
1- Elements are the primary types of matter- What make one element dif.pdf
1- Elements are the primary types of matter- What make one element dif.pdf1- Elements are the primary types of matter- What make one element dif.pdf
1- Elements are the primary types of matter- What make one element dif.pdf
aggallerychennai
 

More from aggallerychennai (20)

1- Give an example of Tyler Pipe-MsiWane's culture prior to the change.pdf
1- Give an example of Tyler Pipe-MsiWane's culture prior to the change.pdf1- Give an example of Tyler Pipe-MsiWane's culture prior to the change.pdf
1- Give an example of Tyler Pipe-MsiWane's culture prior to the change.pdf
 
1- Functions of bone- a- b- c- d- e- f- 2- Types of bone cells- a- (bo (1).pdf
1- Functions of bone- a- b- c- d- e- f- 2- Types of bone cells- a- (bo (1).pdf1- Functions of bone- a- b- c- d- e- f- 2- Types of bone cells- a- (bo (1).pdf
1- Functions of bone- a- b- c- d- e- f- 2- Types of bone cells- a- (bo (1).pdf
 
1- Give a brief statement on the use of PCR and restriction enzymes in.pdf
1- Give a brief statement on the use of PCR and restriction enzymes in.pdf1- Give a brief statement on the use of PCR and restriction enzymes in.pdf
1- Give a brief statement on the use of PCR and restriction enzymes in.pdf
 
1- Foreign direct investment (FDI) occurs a- when there is an acquisi.pdf
1- Foreign direct investment (FDI) occurs a-  when there is an acquisi.pdf1- Foreign direct investment (FDI) occurs a-  when there is an acquisi.pdf
1- Foreign direct investment (FDI) occurs a- when there is an acquisi.pdf
 
1- For a Movies database with a person entity with attributes pid (key.pdf
1- For a Movies database with a person entity with attributes pid (key.pdf1- For a Movies database with a person entity with attributes pid (key.pdf
1- For a Movies database with a person entity with attributes pid (key.pdf
 
1- Explain why children are so vulnerable to media messages and why ma.pdf
1- Explain why children are so vulnerable to media messages and why ma.pdf1- Explain why children are so vulnerable to media messages and why ma.pdf
1- Explain why children are so vulnerable to media messages and why ma.pdf
 
1- Explain what it means to say that an accounting class is not the sa.pdf
1- Explain what it means to say that an accounting class is not the sa.pdf1- Explain what it means to say that an accounting class is not the sa.pdf
1- Explain what it means to say that an accounting class is not the sa.pdf
 
1- File input reads information from an external file into a C++ progr.pdf
1- File input reads information from an external file into a C++ progr.pdf1- File input reads information from an external file into a C++ progr.pdf
1- File input reads information from an external file into a C++ progr.pdf
 
1- Explain why the higher temperature results in greater absorption- 2.pdf
1- Explain why the higher temperature results in greater absorption- 2.pdf1- Explain why the higher temperature results in greater absorption- 2.pdf
1- Explain why the higher temperature results in greater absorption- 2.pdf
 
1- Explain the risk factors- signs- and symptoms of post-traumatic str.pdf
1- Explain the risk factors- signs- and symptoms of post-traumatic str.pdf1- Explain the risk factors- signs- and symptoms of post-traumatic str.pdf
1- Explain the risk factors- signs- and symptoms of post-traumatic str.pdf
 
1- Explain why is Social responsibility is the extent to which a busin.pdf
1- Explain why is Social responsibility is the extent to which a busin.pdf1- Explain why is Social responsibility is the extent to which a busin.pdf
1- Explain why is Social responsibility is the extent to which a busin.pdf
 
1- Evaluate the hardware components of modern computing environments a.pdf
1- Evaluate the hardware components of modern computing environments a.pdf1- Evaluate the hardware components of modern computing environments a.pdf
1- Evaluate the hardware components of modern computing environments a.pdf
 
1- Evaluating the Effectiveness of Your Message The best way to improv.pdf
1- Evaluating the Effectiveness of Your Message The best way to improv.pdf1- Evaluating the Effectiveness of Your Message The best way to improv.pdf
1- Evaluating the Effectiveness of Your Message The best way to improv.pdf
 
1- Explain the principles of sterilization- disinfection- pasteurizati.pdf
1- Explain the principles of sterilization- disinfection- pasteurizati.pdf1- Explain the principles of sterilization- disinfection- pasteurizati.pdf
1- Explain the principles of sterilization- disinfection- pasteurizati.pdf
 
1- Eve has tricked Alice into decrypting a bunch of ciphered that Alic.pdf
1- Eve has tricked Alice into decrypting a bunch of ciphered that Alic.pdf1- Eve has tricked Alice into decrypting a bunch of ciphered that Alic.pdf
1- Eve has tricked Alice into decrypting a bunch of ciphered that Alic.pdf
 
1- Explain translation elongation- Make sure you mention the role of t.pdf
1- Explain translation elongation- Make sure you mention the role of t.pdf1- Explain translation elongation- Make sure you mention the role of t.pdf
1- Explain translation elongation- Make sure you mention the role of t.pdf
 
1- Explain an ethical dilemma concern which has arisen in recent years.pdf
1- Explain an ethical dilemma concern which has arisen in recent years.pdf1- Explain an ethical dilemma concern which has arisen in recent years.pdf
1- Explain an ethical dilemma concern which has arisen in recent years.pdf
 
1- Explain the Business environment and its internal factors 2- Explai.pdf
1- Explain the Business environment and its internal factors 2- Explai.pdf1- Explain the Business environment and its internal factors 2- Explai.pdf
1- Explain the Business environment and its internal factors 2- Explai.pdf
 
1- Elements are the primary types of matter- What make one element dif.pdf
1- Elements are the primary types of matter- What make one element dif.pdf1- Elements are the primary types of matter- What make one element dif.pdf
1- Elements are the primary types of matter- What make one element dif.pdf
 
1- Eind the values for (hint you will need to use the formula sheet at.pdf
1- Eind the values for (hint you will need to use the formula sheet at.pdf1- Eind the values for (hint you will need to use the formula sheet at.pdf
1- Eind the values for (hint you will need to use the formula sheet at.pdf
 

Recently uploaded

SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
CaitlinCummins3
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
AnaAcapella
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
Peter Brusilovsky
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
中 央社
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
EADTU
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
中 央社
 

Recently uploaded (20)

SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
 
Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of TransportBasic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
 
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community PartnershipsSpring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
 
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
 
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
 
Mattingly "AI & Prompt Design: Named Entity Recognition"
Mattingly "AI & Prompt Design: Named Entity Recognition"Mattingly "AI & Prompt Design: Named Entity Recognition"
Mattingly "AI & Prompt Design: Named Entity Recognition"
 
Supporting Newcomer Multilingual Learners
Supporting Newcomer  Multilingual LearnersSupporting Newcomer  Multilingual Learners
Supporting Newcomer Multilingual Learners
 
8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management
 
diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
 
Including Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdfIncluding Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdf
 
The Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDFThe Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDF
 
Major project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategiesMajor project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategies
 
The Liver & Gallbladder (Anatomy & Physiology).pptx
The Liver &  Gallbladder (Anatomy & Physiology).pptxThe Liver &  Gallbladder (Anatomy & Physiology).pptx
The Liver & Gallbladder (Anatomy & Physiology).pptx
 

1- For a Movies database with a Person entity and a Movie entity which.pdf

  • 1. 1. For a Movies database with a Person entity and a Movie entity which have a relationship Acts_In, suppose we wanted to add a count of the number of movies for each person -- that is, how many movies has an actor played a role in. How should we model this? a) Add the count as a regular attribute of the Person entity b) Add the count as a regular attribute of the Acts_In relationship c) Add the count as a derived attribute of the Person entity d) Add the count as a derived attribute of the Acts_In relationship 2. Suppose that for an entity E, there are two candidate keys, A and B. A is a VARCHAR of up to 20 characters while B is a REAL. The primary key should be: a) A b) the pair of A and B c) B d) either A or B, there is no meaningful difference without further information