database assignment

17
THIRD THURSDAY BOOK CLUB PICKS DATABASE ASSIGNMENT Jean Mead LS560

Upload: sidney

Post on 15-Feb-2016

57 views

Category:

Documents


0 download

DESCRIPTION

Database Assignment. Third Thursday Book Club Picks. Jean Mead LS560. Hart County Library Website. Website & Changes. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Database Assignment

T H I R D T H U R S DAY BO O K C LU B P I C K S

DATABASE ASSIGNMENT

Jean MeadLS560

Page 2: Database Assignment

HART COUNTY LIBRARY WEBSITE

Page 3: Database Assignment

WEBSITE & CHANGES

• The Hart County Library Website does not have a search option on the site for our patrons to search anything, including events or books that the Third Thursday Book Club have read.• Since I facilitate the book club, my goal is to

create a tool that patrons and the facilitator can use to search books read in book club according to a variety of data points such as: author name, date read or book title.• I created three tables: Author, Books, and Date.

Page 4: Database Assignment

TABLES

• I created three tables. • The Author table has an ID number, First Name

and Last Name• The Book Table has Book ID number, Title, Author

ID number, Book type (Fic or Non Fic) and Genre.• The Date Table has the Date Read, Author ID

number and Book ID number.

Page 5: Database Assignment

AUTHOR TABLE

Page 6: Database Assignment

BOOK TABLE

Page 7: Database Assignment

DATE TABLE

Page 8: Database Assignment

RELATIONSHIPSMy relationships were: From Author table to Book table: Author ID to Author ID & Last Name to Title. The relationship between Book table and Date table was Book ID to Book ID.

Page 9: Database Assignment

QUERY 1:

• How many books by Sarah Addison Allen have we read in book club?• SELECT "Authors"."Last Name", "Books"."Title",

"Date"."Date Read" FROM "Books", "Authors", "Date" WHERE "Books"."AuthorID" = "Authors"."Author ID" AND "Date"."BookID" = "Books"."BookID" AND "Authors"."Last Name" = 'Allen' ORDER BY "Authors"."Last Name" ASC

• Answer: 2. “Garden Spells” in 2012 and “The Girl that Chased the Moon” in 2013.

Page 10: Database Assignment

QUERY 1:

Page 11: Database Assignment

ANSWER: 2 BOOKS

Page 12: Database Assignment

QUERY 2:

• When did we read the book “Blue”• SELECT "Authors"."Last Name", "Books"."Title",

"Date"."Date Read" FROM "Books", "Authors", "Date" WHERE "Books"."AuthorID" = "Authors"."Author ID" AND "Date"."BookID" = "Books"."BookID" AND "Books"."Title" = 'Blue' ORDER BY "Books"."Title" ASC

• Answer: 4/1/10

Page 13: Database Assignment

QUERY 2: WHEN DID WE READ “BLUE”

Page 14: Database Assignment

ANSWER: “BLUE” WAS READ 4/1/10

Page 15: Database Assignment

WEBSITE CHANGES/MOCK UP

• The best place to put the book club information is on the left menu. • I would add a “Third Thursday Book Club”

Information Button for the patrons to click on and have it send them to an advanced search form.

Page 16: Database Assignment

WEBSITE CHANGES

Page 17: Database Assignment

MOCK UP OF FORM

Third Thursday Book ClubWe meet every third Thursday at 6pm in the small meeting room.

Want to see if we have read your favorite book? Or what we have read in the past?Search the Database!

• By Book Title Search• By Date Read Search• By Author Name Search