Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Following table already exists with the columns as shown. Which of the SQL shown below would correctly insert the data as shown: isbn 1 2

Following table already exists with the columns as shown.
Which of the SQL shown below would correctly insert the data as shown:
isbn12345678902345678901bookTitleLife of PiReading books for dummiesserialNumsABCsXYZpubDate Jan-10-2020purchaseDateJan-1-2020 purchasePrice$21.20 listPrice $33publisherAll Books IncDummies Inc
INSERT INTO BOOK(isbn, bookTitle, serialNum, pubDate, purchaseDate, purchasePrice, listPrice, publisher)
VALUES
('1234567890', 'Life of Pi', 'sABC', NULL, 'Jan-1-2020', $21.20, NULL, 'All Books Inc')
,('2345678901', 'Reading books for dummies', 'sXYZ', 'Jan-10-2020', NULL, NULL, $33.00, 'Dummies Inc')
;
INSERT INTO BOOK(isbn, bookTitle, serialNum, purchaseDate, purchasePrice, publisher)
VALUES
('1234567890', 'Life of Pi', 'sABC', 'Jan-1-2020',21.2, 'All Books Inc')
;
INSERT INTO BOOK(isbn, bookTitle, serialNum, pubDate, listPrice, publisher)
VALUES
('2345678901', 'Reading books for dummies', 'sXYZ', 'Jan-10-2020',33, 'Dummies Inc')
;
INSERT INTO BOOK(isbn, bookTitle, serialNum, pubDate, purchaseDate, purchasePrice, listPrice, publisher)
VALUES
(1234567890, 'Life of Pi', 'sABC', NULL, 'Jan-1-2020',21.20, NULL, 'All Books Inc')
,(2345678901, 'Reading books for dummies', 'sXYZ', 'Jan-10-2020', NULL, NULL, 33.00, 'Dummies Inc')
;
INSERT INTO BOOK(isbn, bookTitle, serialNum, pubDate, purchaseDate, purchasePrice, listPrice, publisher)
VALUES
('1234567890', 'Life of Pi', 'sABC', NULL, 'Jan-1-2020','$21.20', NULL, 'All Books Inc')
,('2345678901', 'Reading books for dummies', 'sXYZ', 'Jan-10-2020', NULL, NULL, '$33.00', 'Dummies Inc')
;
INSERT INTO BOOK(isbn, bookTitle, serialNum, pubDate, purchaseDate, purchasePrice, listPrice, publisher)
VALUES
('1234567890', 'Life of Pi', 'sABC', NULL, 'Jan-1-2020',21.2, NULL, 'All Books Inc')
,('2345678901', 'Reading books for dummies', 'sXYZ', 'Jan-10-2020', NULL, NULL, 33, 'Dummies Inc')
;

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

Oracle Database 11g SQL

Authors: Jason Price

1st Edition

0071498508, 978-0071498500

More Books

Students also viewed these Databases questions

Question

Which form of proof do you find most persuasive? Why?

Answered: 1 week ago