Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Author (Author_Id, Author_Name, Author_Address, DOB) Book (Book_Id, Author_Id, Publisher_Id, Book_Name, Edition, Price) Publisher (Publisher_Id, Publisher_Name, Address) Write the queries and the outputs for the following

Author (Author_Id, Author_Name, Author_Address, DOB) Book (Book_Id, Author_Id, Publisher_Id, Book_Name, Edition, Price) Publisher (Publisher_Id, Publisher_Name, Address) Write the queries and the outputs for the following questions: 1. Create the tables and insert minimum of 5 records and enforce all the constraints mentioned on the tables. 2. Display the name of the author who has written the maximum number of books. 3. Display the author name, publisher name and total number of books the author has published with that publisher. For instance Author Stevens with Author id 1004 has published 3 books with publisher P103. 4. Display the publisher name, book id and book name based on the publishers who have published books. 5. Write a PL/SQL block to insert a new author into author table interactively from the user and update the other table accordingly. Display all records of Author, book, and Publisher tables.

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

Object Oriented Databases Prentice Hall International Series In Computer Science

Authors: John G. Hughes

1st Edition

0136298745, 978-0136298748

More Books

Students also viewed these Databases questions