a little database: ls 560 assignment 3

11
+ A Little Database: LS 560 Assignment 3 Emily Bibb and Belinda Sawyer

Upload: hume

Post on 22-Feb-2016

42 views

Category:

Documents


0 download

DESCRIPTION

A Little Database: LS 560 Assignment 3. Emily Bibb and Belinda Sawyer. A Little Bit Sheepish: a yarn shop in historic Berlin, MD. http:// www.alittlebitsheepish.com /. Newsletter Sign-up. Events Calendar. Online shopping. So, what does this site need?. Searchable Events Date Price - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: A Little Database:  LS 560 Assignment 3

+

A Little Database: LS 560 Assignment 3Emily Bibb and Belinda Sawyer

Page 2: A Little Database:  LS 560 Assignment 3

+A Little Bit Sheepish: a yarn shop in historic Berlin, MD http://www.alittlebitsheepish.com/

Page 3: A Little Database:  LS 560 Assignment 3

+Newsletter Sign-up

Page 4: A Little Database:  LS 560 Assignment 3

+Events Calendar

Page 5: A Little Database:  LS 560 Assignment 3

+Online shopping

Page 6: A Little Database:  LS 560 Assignment 3

+So, what does this site need?

Searchable Events Date Price

Searchable customer information Amount spent

Page 7: A Little Database:  LS 560 Assignment 3

+Relationships

Page 8: A Little Database:  LS 560 Assignment 3

+Online shopping, with returning customers functionality added

Page 9: A Little Database:  LS 560 Assignment 3

+Events, before and after

Page 10: A Little Database:  LS 560 Assignment 3

+SQL

Query 1: To determine class size SELECT "eventtitle", "instructor", "enrollment" FROM

"events" WHERE "enrollment" <= 8 ORDER BY "eventtitle"

Query 2: To determine a customer’s spending SELECT "purchaseID", "customer", "amountpaid", "date"

FROM "purchases" WHERE "customer" = 1234 ORDER BY "date" ASC

Query 3: To find available classes within a certain price range SELECT "eventtitle", "startdate", "crafttype", "cost" FROM

"events" WHERE "cost" <= 40 ORDER BY "startdate" ASC

Page 11: A Little Database:  LS 560 Assignment 3

+Sample Report: Classes where enrollment was equal to or less than 8 participants, ordered by Class Title.