Answered step by step
Verified Expert Solution
Question
1 Approved Answer
BOOK ISBN : int BookName : varchar(50) Pride and Prejudice The Call of the Wild White Fang In Cold Blood AuthorID : int 10 12
BOOK ISBN : int BookName : varchar(50) Pride and Prejudice The Call of the Wild White Fang In Cold Blood AuthorID : int 10 12 12 13 Type : varchar(20) Fiction Fiction Fiction Non-Fiction 4 AuthorName : varchar(50) Jane Austin AUTHOR AuthorID : int 10 12 13 14 Jack London Truman Capote Charlotte Bronte There is a Foreign Key (FK) in BOOK for AuthorID to the Primary key of Author A) Identify the primary keys in BOOK B) Identify the primary keys in AUTHOR C) What is the domain of BOOK? D) What constraints would the following code obviously violate if any (there may be none in which case write none, or more than one.)? a. INSERT INTO BOOK (ISBN, BookName, AuthorID, Type) VALUES (Null, '1984, 190, 'Fiction') b. INSERT INTO AUTHOR (AuthorID, AuthorName) VALUES (10, 'Arthur C. Clarke") C. INSERT INTO AUTHOR (AuthorID, AuthorName) VALUES (15, Dodie Smith') d. INSERT INTO BOOK (ISBN, BookName, AuthorID, Type) VALUES (5, 'Emma', 10, 'Fiction') e. DELETE FROM AUTHOR WHERE AuthorID = 12 f. DELETE FROM AUTHOR WHERE AuthorID = 14 g. UPDATE AUTHOR SET AUTHORNAME = 'Jane Austen' WHERE AuthorID = 10
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started