SQL Assignment
Unless otherwise stated, use one SQL statement instead of multiple SQL statements to answer the following questions
When a table is shown under the question, you should generate a report the same as the table.
Questions:
1. What is the most popular item in terms of the number of times borrowed?
2. What is the average cost of Taylor Swift's albums, including CDs and DVDs? Round a number to 2 decimal places.
3.For each book title with more than 2 copies, list the names of library members who have borrowed them and have not returned. Sort the results in ascending order by Title and then in ascending order by Last Name.
4. The librarian manager is interested to know yearly borrowing volume by Major. Present a report displaying the Major, Year, and the number of loans. Sort the results in ascending order by Major and then in ascending order by Year.
5. Produce a report showing all books that been borrowed in the past by "Yi-Te Chiu".Include Title in your query results.