Question: Add a fine column in the transaction table and add some values in it. 1. Write the SQL queries and execute to verify the outputs.
Add a fine column in the transaction table and add some values in it.
books ( book_id int, title varchar(20), author_last_namevarchar(20), author_first_name varchar(20), ratingchar(1))
patrons (patron_id int, last_name varchar(20), first_name varchar(20), street_address varchar(30), cityvarchar(10), zip char(7), DOB date, Last_modified date, Modified_By varchar2(15))
transactions (transaction_id int, patron_id int, book_id int, transaction_date date, transaction_type char(1))
Book_Id, Patron_id and Transaction_id are primary keys. Patron_id and book_id in transactions table are foreign keys.
Possible values for the transaction_type are 1 = checking out , 2 = returning, 3 = placing a hold.
Possible values for the rating are 1 = text book, 2 = reference book, 3 = others
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
