Consider the following database schema for a library. Book (BookID:int, BookTitle:string(unique), Author:string, publisher:string) Borrowing-Record (BookID: int, CustomerCPR: int, Date: date, Time: time, Price: double) Customer (CPR:int, name: String) Is it possible to have a CPR with more than 9 digits? No, violates referential integrity constraint. Yes. No, violates domain constraints. No, violates key constraint. O No, violates entity Integrity constraint

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
QUESTION 1
Consider the following database schema for a library.
Book (BookID:int, BookTitle:string(unique), Author:string, publisher:string)
Borrowing-Record (BookID: int, CustomerCPR: int, Date: date, Time: time, Price: double)
Customer (CPR:int, name: String)
Is it possible to have a CPR with more than 9 digits?
O No, violates referential integrity constraint.
O Yes.
O No, violates domain constraints.
No, violates key constraint.
O No, violates entity Integrity constraint
Transcribed Image Text:QUESTION 1 Consider the following database schema for a library. Book (BookID:int, BookTitle:string(unique), Author:string, publisher:string) Borrowing-Record (BookID: int, CustomerCPR: int, Date: date, Time: time, Price: double) Customer (CPR:int, name: String) Is it possible to have a CPR with more than 9 digits? O No, violates referential integrity constraint. O Yes. O No, violates domain constraints. No, violates key constraint. O No, violates entity Integrity constraint
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Complex Datatypes
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
  • SEE MORE 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