Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

BOOK ISBN : int BookName : varchar(50) AuthorID : int Type : varchar(20) Pride and Prejudice Fiction The Call of the Wild Fiction White Fang Fiction In Cold Blood Non-Fiction AUTHOR AuthorID : int AuthorName : varchar(50) Jane Austin Jack London Truman Capote Charlotte Bronte There is a Foreign Key (FK) in BOOK for Authorld to the Primary key of Author

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Graph Database Modeling With Neo4j

Authors: Ajit Singh

2nd Edition

B0BDWT2XLR, 979-8351798783

More Books

Students also viewed these Databases questions