CS 386 Introduction to Database Systems

LibraryDB Database Description


Librarydb is a database that keeps track of information concerning the books and their circulation in an imaginary departmental library. The data that populates the database are artificially constructed and by no means correspond to actual real world data (this is a disclaimer :).

LibraryDB consists of the following tables:

Here are the tables in the LibraryDB, with keys underlined.

·         Action (transactionid, personid, borrowdate, duedate, returndate)

·         Author(authorid, firstname, middlename, lastname)

·         Book (bookid, bookdescid)

·         Book_description (bookdescid, title, subtitle, edition, voltitle, volnumber, language, place, year, isbn, dewey, subjectid)

·         Borrowrel (transactionid, bookid)

·         Person (personid, firstname, middlename, lastname, parentname, address, city, zipcode, phonenumber, emailaddress, property, studentno, idcardno)

·         Publisher (publisherid, publisherfullname)

·         Relauth (bookdescid, authorid, role)

·         Relpub (bookdescid, publisherid, role)

·         Subject (subjectid, subjecttype)

Use the Postgres database to find out the domains of the attributes and to see sample data.

Click here to see a diagram representing the LibraryDB schema. Note that boxes represent relation schemas, e.g., the Person box is the Person table, and items within a box represent attributes. Also, lines between boxes represent foreign keys, and underlined attributes make up the primary key for the table.