Professional Documents
Culture Documents
Fosters Furnishings OrderDB
Fosters Furnishings OrderDB
Furnishings (DB)
OVERVIEW
Foster’s Furnishings, based in Kingston, produces stylish reasonably priced furniture for the local market,
which are sold to furniture stores island-wide. The company has an array of standard designs, produced from
local and imported lumber, and makes the occasional custom piece to order.
The company currently tracks their orders using a paper-based system and would like to upgrade to an IT-
based solution. Accordingly, you been asked to develop a prototype using a database management system and
demonstrate its usefulness by developing basic forms, queries, and reports. You have been provided with
sample data in a file named Fosters_OrderData_DB.
DESIGN SPECIFICATIONS
The Order database is comprised of four (4) tables: Customer, Product, Order, and OrderLine.
The Customer table is used to capture customer details. Figure 1 has the design and Figure 2 has the data.
CustomerID is the primary key.
Figure 1: tblCustomer Design
Field Name Field Description Data Type Field Size Comments
CustomerID Uniquely identifies each customer Number Byte PK
CustomerName Name of customer Short Text 20
Address Street address Short Text 30
City City or town Short Text 20
A sample order from is displayed in Figure 5 and two (2) tables are used to capture order details: Order and
Orderline.
Order Header
Order Details
The OrderDetail table stores order detail data i.e. which products were ordered and how many of each.
Figure 8 has the design and Figure 9 has a sample of the data. OrderID and ProductID together form the
primary key (i.e. a composite key) and individually, they are (each) foreign keys. For a composite PK, the
combination is unique. In this database, the assumption is that each product will appear ONCE on each
order.
Figure 8: tblOrderDetail Design
Field Name Field Description Data Type Field Comments
Size
OrderID Together form the PK Number Integer FK, Lookup
ProductID (separately they are FKs) Number Byte FK, Lookup
OrderQty Quantity ordered Number Byte
Noticed that the totals at the bottom of the form in Figure 5 are not stored? That’s because they are
calculated when needed. That’s like AGE. We store DOB and calculate AGE on demand.
LEARNING OBJECTIVES
1. Create tables from design view of by importing and modifying the design.
2. Relate tables and enforce referential integrity.
3. Create lookups/list boxes on foreign keys and other fields using the Lookup Wizard.
4. Create forms with/without subforms.
5. Create SELECT queries: detail and group by/aggregate/total
6. Create reports with/without groupings
7. Create UNMATCHED queries