ssume that you have been given the task of creating a system for a library to ke
ID: 3745448 • Letter: S
Question
ssume that you have been given the task of creating a system for a library to keep track of their books, the borrowers of the books, and the books that are currently lent out. Your first step will be to create the relations necessary for this system.
Book will need information such as a unique identifier for each book, title, author, ISBN number, date of publication, cost
Borrower will need information such as a unique identifier for the person such as a library card number, name, address, phone number, date of membership
BooksLended will need information such as the book checked out, the date the book was checked out, when it must be returned, the borrower of the book, etc.
Librarian will need information on the librarians who can perform the check out of a book. This will include a way to identify each librarian, their name, and extension phone number.
Be sure to identify what are candidate, primary, alternate keys and the degree of each relation. It would be recommended that you document your relations in the manner used in the Sharma et al. text.
Assignment Instructions
· Assignment documents the relations required for the library system and includes each of the following:
o Book
o Borrower
o BookLended
o Librarian
· Each relation must define an identifier and its data types that uniquely identifies each tuple
· The degree of each relation must be described
· Each relation must include appropriate information other than identifiers such as attributes and the data type of attributes
o The book relation includes at least title, author, ISDN number, date of publication, and cost along with the data types that are appropriate to the data
o The borrower relation includes at least library card #, name, address, postal code, phone number, and date of membership along with the data types that are appropriate to the data
o The booklended relation includes at least borrower, check out date, return date, book id, librarian
o The librarian relation includes at least librarian id, name, phone number
Explanation / Answer
If you have any doubts, please give me comment...
book(title: string, author: string, ISBN_number:string, date_of_publication: int, cost: real);;
borrower(library_card#: int, name: string, address: string, postal_code: int, phone_number: int, date_of_membership: date);
booklended(borrower_id: int, book_id: string, librarian_id: int, check_outdate: date, return_date: date);
librarian(librarian_id: int, name: string, phone_nummber: string);
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.