Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Note: for the sql script file that you create please create an author block at the top similar to what is shown below. Also if
Note: for the sql script file that you create please create an author block at the top similar to what is shown below. Also if you are answering specific questions or problems, please include a comment about which one it is
Example: note that starting a line with no space indicates that the remainder of the line is a comment
CarolinaPublishing Queries:
Query answers for Homework
Author: Clint Fuchs
Course: CSCI
Assignment:
Date:
Version:
problem description
SELECT
problem
SELECT
Note: you will lose points if you don't include comments for the header AND for each individual problem!
Part : Queries
Next, create your own sql script file named CarolinaPublishingQueries.sql to be used to create queries to accomplish the following:
Display the first and last name along with the phone number of all Agents.
Display the Editor name for all Editors sorted by last name and first name in that order
Display the Book titles, author name, and number of pages for all Books with more than pages.
Display the number of Authors who do NOT have Agents.
Display the total number of Books that contain how to in the title.
Display the Authors first and last name and their Agents first and last name for all Authors whose last name starts with the same first letter of your last name if no match try the first letter of your first name if still no match try Agent or Editor
Display the Book title and Author first and last name of the Books whose genre is either Educational or History.
Display the Authors first and last name, Books title and genre, Editors first and last name for all Books that are in the Biography genre.
Display each Editors first and last name along with their mentors first and last name with column headers MentorFirstName and MentorLastName respectively.
Display the Editors first and last name, as well as the Books title sorted by Books title first and the Editors last name second for all Books that were published on September
Display the Editors first and last name along with their ID for the Editors that has edited at least one Book with the least number of pages.
Display each Authors ID first and last names and the total number of pages for all of the Books they have written.
Display each Book genre as well as the number of Books written in that genre with the column header Number Of Books
Display the Authors first and last name, as well as their ID and the Book title and number of pages for all of the books they have written that have more than the average number of pages for all of the books that have been written, listed by authors first and last name along with the book title, and the books number of pages.
Display the Authors ID first and last name, and that Author's Edtior ID and first and last name of the Author who has the most Books in the Carolina Publishing database this one is a tough one
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