1 / 11

A Little Database: LS 560 Assignment 3

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

hume
Télécharger la présentation

A Little Database: LS 560 Assignment 3

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


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

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

  3. Newsletter Sign-up

  4. Events Calendar

  5. Online shopping

  6. So, what does this site need? • Searchable Events • Date • Price • Searchable customer information • Amount spent

  7. Relationships

  8. Online shopping, with returning customers functionality added

  9. Events, before and after

  10. 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

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

More Related