Question
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
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