Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This assignment will assess your knowledge and skills about: Creating and manipulating database entities. Modifying data within database tables. Assignment Information In the previous week
This assignment will assess your knowledge and skills about:
Creating and manipulating database entities.
Modifying data within database tables.
Assignment Information
In the previous weeks assignment of Unit you were assigned to develop a simple database system to manage a library. Use the same database schema of the entities:
Books with attributes: ISBN, Title, Author, Genre, and Quantity
Members with attributes: MemberID, Name, Email, and Phone
Loans with attributes: LoanID, MemberID, ISBN, LoanDate, and ReturnDate
For this weeks assignment, your task is to:
Extend the existing database schema to include the following table:
Authors AuthorID Name, Nationality, BirthYear
Populate the tables with sample data. Include at least:
books
authors
members
Write SQL queries to perform the following operations:
Retrieve all books written by a specific author.
Drop the newly created Authors table.
Identify the names of all members who have borrowed a specific book.
Imagine a scenario where the "Members" table needs to be updated to include a new attribute called "MembershipType" to distinguish between different types of memberships. Write an SQL query to alter the "Members" table to include this new attribute.
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