Create an ERD Diagram showing the tables and fields needed. Write SQL statements that will produce the tables and columns identified in your ERD Diagram.

MySQL Database
Creating a database solution for a local library.
You have been tasked with creating a database solution for a local library. This database will be used to keep information about the books owned by the library and which books are checked out by customers.

You are given the following information:
The database will need to store information about books, authors, and customers.
Books can have multiple authors. Authors can write multiple books. Customers can check out any number of books they wish.
Book information includes title, author, year of release, number of pages, genre, location (in library, checked out).
Author information includes name.
Customer information includes name, age, phone number, join date, books checked out.

Instructions:
With the selected scenario in mind, create an ERD Diagram showing the tables and fields needed. Be sure to identify and keys or constraints. (40 points)
Write a brief prompt discussing the design considerations of your database solution. (40 points)
Write SQL statements that will produce the tables and columns identified in your ERD Diagram. (40 points)
Write SQL statements that will populate at least 5 records in each of your tables. (20 points)
Write SQL statements to perform the following (Assume the records and counts your return should be unique. (Feel free to use more keywords/functions than those listed):
Produce a list of fields using SELECT and WHERE statements. (2 points)
Produce a list of fields using SELECT and ORDER BY statements. (2 points)
Produce a list of fields using SELECT and GROUP BY statements. (2 points)
Craft a query that returns a count and a customer/player name (10 points)
Modify values in the age field to increment by 1. (10 points)
Add a column to your database. Remove the column from your database. (2 points)
Delete rows in your database using a WHERE statement. (2 points)
Delete a table. (10 points)
Include SQL statements you used as well as returned results of statements. Submit your final exam as a Word or PDF document.

Create an ERD Diagram showing the tables and fields needed. Write SQL statements that will produce the tables and columns identified in your ERD Diagram.
Scroll to top