CS230
Introduction to Access
Microsoft Access is a powerful database management system (DBMS). Some of the key features are:
á Data entry and update: add, change or delete data in mass
á Queries: ask complex questions about the data
á Forms: produce attractive and useful forms for viewing and updating the data
á Reports: create sophisticated reports for printing data
á Web support: allows you to save objects in HTML
People keep records (such as phone numbers, names, birthdays, records of expenses, etc). To get the most out of these records, they should arranged for quick access.
The word database describes a collection of data organized in a manner that allows easy access, retrieval and use of the data. The data should also be linked if there is any relationship between them.
DBMS refers to a piece of software that allows you to create, change, add and delete data in a database.
A database consists of a collection of tables, where the rows in the tables are called records and the columns in the tables are called fields.
LetÕs jump in and explore Access.
The example that we are going to work with today is Alisa Vending Services, which is a company that places vending machines at its customerÕs facilities. Each customer gets a share of the profits of the machine, which is paid quarterly. Alisa much track the amount that has been paid as well as the amount due to each customer.
Alisa also employs drivers to deliver and service the vending machines. Each customer is assigned a specific driver.
Below is a table containing the data on the customers and the drivers.
CustomerNumber |
Name |
Address |
City |
State |
ZipCode |
AmountPaid |
CurrentDue |
DriverNumber |
BA95 |
Bayside Hotel |
287 Riley |
Hansen |
FL |
38513 |
$21,876.00 |
$892.50 |
30 |
BR46 |
Baldwin-Reed |
267 Howerd |
Fernwood |
FL |
37023 |
$26,512.00 |
$2,672.00 |
60 |
CN21 |
Century North |
1562 Butler |
Hansen |
FL |
38513 |
$8,725.00 |
$0.00 |
60 |
FR28 |
Friend's Movies |
871 Adams |
Westport |
FL |
37070 |
$4,256.00 |
$1,202.00 |
75 |
GN62 |
Grand Nelson |
7821 Oak |
Wood Key |
FL |
36828 |
$8,287.50 |
$925.50 |
30 |
GS29 |
Great Screens |
572 Lee |
Hansen |
FL |
38513 |
$21,625.00 |
$0.00 |
60 |
LM22 |
Lenger Mason |
274 Johnson |
Westport |
FL |
37070 |
$0.00 |
$0.00 |
60 |
ME93 |
Merks College |
561 Fairhill |
Bayville |
FL |
38734 |
$24,761.00 |
$1,572.00 |
30 |
RI78 |
Riter University |
26 Grove |
Fernwood |
FL |
37023 |
$11,682.25 |
$2,827.50 |
75 |
TU20 |
Turner Hotel |
8672 Quincy |
Palmview |
FL |
36114 |
$8,521.50 |
$0.00 |
60 |
DriverNumber |
LastName |
FirstName |
Address |
City |
State |
ZipCode |
HourlyRate |
YTDEarnings |
30 |
Tuttle |
Larissa |
7562 Hickory |
Laton Springs |
FL |
37891 |
$16.00 |
$21,145.25 |
60 |
Powers |
Frank |
57 Ravenwood |
Gillmore |
FL |
37572 |
$15.00 |
$19,893.50 |
75 |
Ortiz |
Jose |
341 Pierce |
Douglas |
FL |
37613 |
$17.00 |
$23,417.00 |
Database design refers to the arrangement of data into tables and fields. One needs to design to remove redundancy. Redundancy:
á Wastes space on disk
á Makes updating more complicated
á Allows for inconsistent data to occur
A query is a question represented in a way that Access can understand.
Going back to our Alisa Vending Company, let us create some queries.
You can also use wildcard characters:
á * represents any collection of characters, B* represents any text that starts with B
á ? represents any single character, t?m represent the letter t followed by any single character followed by m
Now itÕs your turn.
Create the following three queries. Give these queries appropriate names:
If a query cannot be satisfied by using one table, then we need to join tables.
Access
supports the built-in statistics:
á
COUNT
á
SUM
á
AVG
á
MAX
á
MIN
á STDEV
These
functions are called Òaggregate functionsÓ which perform some mathematical
function against a group of records.