Sunteți pe pagina 1din 5

IT Applications

INTAKE

ASIA PACIFIC UNIVERSITY COLLEGE OF TECHNOLOGY AND


INNOVATION
LAB SESSION 6

CASE 1: CREATING THE SCHOOL CONNECTION DATABASE


Problem:
The Boosters Club at the local high school raises money by selling merchandise imprinted with
the school logo to alumni. The Boosters Club purchases products from vendors that deal in
school specialty items. The database consists of two tables. The Item table contains information
on items available for sale. The Vendor table contains information on the vendors.
Instructions: Perform the following tasks.
1. Create a new database in which to store all the objects related to the merchandise data. Call
the database School Connection followed by your name.
2. Create the Item table using the structure shown in Table 1. Use the name Item for the table.
Field Name
Item ID
Description
On Hand
Cost
Selling Price
Vendor Code

Data Type
Text
Text
Number
Currency
Currency
Text

Field Size
4
25
Long Integer

Primary Key
Yes

Description
Item ID Number (Primary Key)
Description of Item
Number of Units On Hand
Cost of Item
Selling Price of Item
Code of Item Vendor

Table 1: Structure of Item table

3. Create a combo box for Field Name Vendor Code.


a. Create a new table in design view.
Field Name
Vendor Code

Data Type
Text

Field Size
2

Primary Key
Yes

Description
Code of Item Vendor

Table 2: Structure of Vendor Code table

b.
c.
d.
e.
f.
g.

Save the table as Vendor Code table.


Go to Datasheet View. Enter the following data: AL, GG, TM.
Save and close the Vendor Code table.
Open the Item table.
On the Vendor Code field, change the properties as shown in Figure 1.
Save the Item table.

Page1of5

IT Applications

INTAKE

Figure 1: Lookup Properties for Vendor Code field in Item table

4. Use the wizard to create a form for the Item table.


5. Create the following navigational buttons on the form: first record, previous record, next
record, last record.
6. Add the data shown in Table 3 to the Item table using the form you have created.
Item ID
BA02
CM12
DM05
OR01
PL05
PN21
PP20
SC11
TT12
WA34

Description
Baseball Cap
Coffee Mug
Doormat
Ornament
Pillow
Pennant
Pen and Pencil Set
Scarf
Tie
Wastebasket

On Hand
15
20
5
25
8
22
12
17
10
3

Cost
$12.50
$3.75
$14.25
$2.75
$13.50
$5.65
$16.00
$8.40
$8.90
$14.00

Selling Price Vendor Code


$15.00
AL
$5.00
GG
$17.00
TM
$4.00
GG
$15.00
AL
$7.00
TM
$20.00
GG
$12.00
AL
$12.00
AL
$15.00
GG

Table 3: Data for Item table

7. Create the Vendor table using the structure shown in Table 4. Use the name Vendor for the
table.
Field Name
Vendor Code
Name
Address
City
State
Zip Code
Telephone

Data
Type
Text
Text
Text
Text
Text
Text
Text

Field Size

Primary Key

Description

2
30
20
20
2
5
12

Yes

Vendor Code (Primary Key)


Name of Vendor
Street Address
City
State (Two-Character Abbreviation)
Zip Code (Five-Character Version)
Telephone Number (999-999-9999 Version)

Table 4: Structure of Vendor table

8. Create a combo box for the Field Name Vendor Code.


a. Open the Vendor table.
b. On the Vendor Code field, change the properties as shown in Figure 1.
c. Save the Vendor table.

Page2of5

IT Applications

INTAKE

Figure 2: Lookup Properties for Vendor Code field in Vendor table

9. Format the Telephone Number field to 999-999-9999 format using the input mask feature.
10. Use the wizard to create a form for the Vendor table. Use the name Vendor for the form.
11. Create the following navigational buttons on the form: first record, previous record, next
record, last record.
12. Add the data shown in Table 5 to the Vendor table using the form you have created.
Vendor
Code
AL
GG
TM

Name

Address

Alum
Logo 1669 Queen
Inc.
GG Gifts
5261
Stream
Trinket
n 541 Maple
More

City

State

Zip Code Telephone


Number
53595
608-555-9753

Aurora

WI

Brisbane

NM

88061

505-555-8765

Kentwood

VA

20147

804-555-1234

Table 5: Data for Vendor table

CASE 2 : CREATING THE CITY AREA BUS COMPANY DATABASE


Problem:
Like many transportation companies, the City Area Bus Company sells advertising. Local firms
buy advertising from ad sales representatives who work for the bus company. Ad sales
representatives receive a commission based on the advertising revenues they generate. The
database consists of two tables. The Advertiser table contains information on the organizations
that advertise on the buses. The Sales Rep table contains information on the representative
assigned to the advertising account.
Instructions: Perform the following tasks.
1. Create a new database in which to store all the objects related to the advertising data. Call the
database City Area Bus Company followed by your name.
2. Create the Advertiser table using the structure shown in Table 6. Use the name Advertiser
for the table.

Page3of5

IT Applications

Field Name
Advertiser ID
Name
Address
City
State
Zip Code
Balance
Amount Paid
Sales Rep Number

INTAKE

Data
Type
Text
Text
Text
Text
Text
Text
Currency
Currency
Text

Field Primary Description


Size Key
4
Yes
Advertiser ID (Primary Key)
20
Name of Advertiser
15
Street Address
15
City
2
State (Two-Character Abbreviation)
5
Zip Code (Five-Character Version)
Amount Currently Owed
Amount Paid Year-to-Date
2
Number of Advertising Sales Representatives
Table 6: Structure of Advertiser table

3. Create a combo box for State and City.


4. Create a form for the Advertiser table.
5. Add the data shown in Table 7 to the Advertiser table using the form created.
Advertiser Name
ID

Address

City

AC25

223
Michigan
1939
Jackson
787
Ottawa
3294
Campeau
1632
Shue
3140
Main
1805
Broadway
2200
Lawrence
13
Monroe
39 Albert

Crescentville MA

05431

Richmond

MA

05433

Cheltenham

CT

06470

$35.00

$660.00

29

Richmond

MA

05434

$185.00

$975.00

31

Manyunk

CT

06471

$0.00 $1,500.00

24

BB99
CS46
FS78
GR75
HC11
MC34
NO10
PJ24
TM89

Alia
Cleaners
Bobs
Bakery
Caras
Salon
Franz and
Sons
Gs
Restaurant
Hildes
Cards
Moms
Cookies
New
Orient
Pajama
Store
Toms
Market

State Zip
Code

Balance Amount
Paid
$85.00

Sales
Rep
Number
$85.00
24

$435.00 $1,150.00

$250.00

29

Crescentville MA

05431

$500.00

29

Crescentville MA

05431

$95.00 $1,050.00

29

Manyunk

CT

06471

$150.00

$350.00

24

Cheltenham

CT

06470

$0.00

$775.00

31

Richmond

MA

05433

$50.00

$500.00

24

Table 7: Data for Advertiser table

Page4of5

IT Applications

INTAKE

6. Create the Sales Rep table using the structure shown in Table 8. Use the name Sales Rep for
the table. Be sure that the field size for the Comm Rate field is Double.
Field Name

Data
Type
Rep Text

Sales
Number
Last Name
First Name
Address
City
State
Zip Code
Comm Rate
Commission

Text
Text
Text
Text
Text
Text
Number
Currency

Field Size
2

Primary Description
Key
Yes
Advertising Sales Rep Number (Primary Key)

15
10
15
15
2
5
Double

Last Name of Advertising Sales Rep


First Name of Advertising Sales Rep
Street Address
City
State (Two-Character Abbreviation)
Zip Code (Five-Character Version)
Commission Rate
Year-to-date Total Commissions

Table 8: Structure of Sales Rep table

7. Create combo boxes for State and City.


8. Create a form for the Sales Rep table.
9. Add the data shown in Table 9 to the Sales Rep table using the form created.
Sales
Last
First
Rep
Name
Number
24
Chou Peter
29
Oritz Elvia
31

Reed

Pat

Address

City

34 Second Crescentville
45
Cheltenham
Belmont
78
Richmond
Farmwood

State

Zip
Code

Comm Commission
Rate

MA
CT

05431
06470

0.09
0.09

$7,500.00
$8,450.00

MA

05433

0.08

$7,225.00

Table 9: Data for Sales Rep table

Page5of5

S-ar putea să vă placă și