lis-560 database assignment kelly’s kids database design by chrystie kroeker boggs

11
LIS-560 Database Assignment Kelly’s Kids Database Design by Chrystie Kroeker Boggs

Upload: bartholomew-lambert

Post on 13-Jan-2016

225 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: LIS-560 Database Assignment Kelly’s Kids Database Design by Chrystie Kroeker Boggs

LIS-560 Database Assignment

Kelly’s Kids Database Design

by Chrystie Kroeker Boggs

Page 2: LIS-560 Database Assignment Kelly’s Kids Database Design by Chrystie Kroeker Boggs

Current Website

The Kelly’s Kids website provides online shopping, primarily for children’s clothing

Page 3: LIS-560 Database Assignment Kelly’s Kids Database Design by Chrystie Kroeker Boggs

Proposed changes

• The current Kelly’s Kids website does not provide many options when it comes to searching for items. Currently a customer can only search by name or by category – there is no option to search for sale items, specific sizes, etc.

• Proposed solution: implement an “Advanced Search” page to allow greater control over searching, using an enhanced database

Page 4: LIS-560 Database Assignment Kelly’s Kids Database Design by Chrystie Kroeker Boggs

Database overview: Tables

The ability to do advanced searching will be provided by the underlying database.This database will, in addition to the existing search capabilities, allow for filtering by sale status, sizing, and customizability (i.e., can it be monogrammed?).

The main table, “Items”, contains the basic information for each item:• Name• Pricing• Sale status• Customization status

Page 5: LIS-560 Database Assignment Kelly’s Kids Database Design by Chrystie Kroeker Boggs

Database overview: Tables cont…

• The Categories and Sizes tables provide the available item category and size options

• The ItemsToCategories and ItemsToSizes tables provide the link between the main Items table and the Categories & Sizes tables

Page 6: LIS-560 Database Assignment Kelly’s Kids Database Design by Chrystie Kroeker Boggs

Database overview: Relationships

ItemsToSizes links a record from the Items table to one or more records in the Sizes table, allowing a single article of clothing to be linked to multiple size options.

Similarly, ItemsToCategories links a record from the Items table to one or more records in the Categories table, allowing a single article to be listed under multiple categories (e.g., a swimsuit coverup might appear both under the “dresses” and “swim” categories)

Page 7: LIS-560 Database Assignment Kelly’s Kids Database Design by Chrystie Kroeker Boggs

Mockup: main page

An “Advanced Search” option will be added to the main page

Page 8: LIS-560 Database Assignment Kelly’s Kids Database Design by Chrystie Kroeker Boggs

Mockup: Advanced Search page

Page 9: LIS-560 Database Assignment Kelly’s Kids Database Design by Chrystie Kroeker Boggs

Example usage: SQL

Example query for searching for all items in the “7-8 Regular” size range (ID 8), sorted by name:

SELECT"Items"."Name", "Items"."RegularPrice", "Items"."CurrentPrice"

FROM "ItemsToSizes", "Items"

WHERE "ItemsToSizes"."ItemID" = "Items"."ID" AND "ItemsToSizes"."SizeID" = 8 AND "Items"."IsCustomizable" = TRUE

ORDER BY "Items"."Name" ASC

“Customizable items, size 7-8” query in the database file

Page 10: LIS-560 Database Assignment Kelly’s Kids Database Design by Chrystie Kroeker Boggs

Example usage: SQL cont…

Example query for searching for all items in the “Dresses” category (ID 13) that are on sale. The output includes every size available for each item:

SELECT "Items"."Name", "Items"."RegularPrice", "Items"."CurrentPrice", "Sizes"."Name" AS "Size"

FROM "ItemsToCategories", "Items", "ItemsToSizes", "Sizes"

WHERE "ItemsToCategories"."ItemID" = "Items"."ID" AND "ItemsToSizes"."ItemID" = "Items"."ID" AND "ItemsToSizes"."SizeID" = "Sizes"."ID" AND "ItemsToCategories"."CategoryID" = 13 AND "Items"."IsOnSale" = TRUE

“Dresses on sale (including available sizes)” query in the database file

Page 11: LIS-560 Database Assignment Kelly’s Kids Database Design by Chrystie Kroeker Boggs

Sample Report

Sample report for the “Dresses on Sale” query(Generated using OpenOffice’s Report wizard)