| Connolly, Begg, Holowczak | Pratt/Adamski | Elmasri/Navathe (3rd ed.) | Kroenke Book (7th ed.) | McFadden (5th ed.) | Mata-Toledo / Cushman |
|---|---|---|---|---|---|
| Ch. 1 and 2 | Ch. 1 | Ch. 1 and 2 | Chap. 1 and 2 | Chap. 1 | Schaum's Outlines Ch. 1 |
| CustomerID | Name | Address | City | State | Acct_Number | Balance |
|---|---|---|---|---|---|---|
| 123 | Mr. Smith | 123 Lexington | Smithville | KY | 9987 | 4000 |
| 123 | Mr. Smith | 123 Lexington | Smithville | KY | 9980 | 2000 |
| 124 | Mrs. Jones | 12 Davis Ave. | Smithville | KY | 8811 | 1000 |
| 125 | Mr. Axe | 443 Grinder Ln. | Broadville | GA | 4422 | 6000 |
| 125 | Mr. Axe | 443 Grinder Ln. | Broadville | GA | 4433 | 9000 |
| 127 | Mr. & Mrs. Builder | 661 Parker Rd. | Streetville | GA | 3322 | 500 |
| 127 | Mr. & Mrs. Builder | 661 Parker Rd. | Streetville | GA | 1122 | 800 |
e.g., contrast a canned accouting software package like Quicken or QuickBooks with DBMS like MS Access.
| CustomerID | Name | Address | City | State |
|---|---|---|---|---|
| 123 | Mr. Smith | 123 Lexington | Smithville | KY |
| 124 | Mrs. Jones | 12 Davis Ave. | Smithville | KY |
| 125 | Mr. Axe | 443 Grinder Ln. | Broadville | GA |
| 127 | Mr. & Mrs. Builder | 661 Parker Rd. | Streetville | GA |
Accounts Table
| CustomerID | Acct_Number | Balance |
|---|---|---|
| 123 | 9987 | 4000 |
| 123 | 9980 | 2000 |
| 124 | 8811 | 1000 |
| 125 | 4422 | 6000 |
| 125 | 4433 | 9000 |
| 127 | 3322 | 500 |
| 127 | 1122 | 800 |
Have a look at the Database Documentor feature of
MS Access (under the tools menu, choose Analyze and
then Documentor).
This tool queries the system tables to give all kinds of
Metadata for tables, etc. in an MS Access database.
The following is a very brief outline describing the database development process.
ACCOUNTS
Customer_Id, Account_Number, Account_Type,
Date_Opened, Balance
Note that we use an artificial identifier (a
number we make up) for the customer called
Customer_Id. Given a Customer_Id, we can uniquely
identify the remaining information. We call Customer_Id a
Key for the CUSTOMERS table.
Notice that when naming columns in the tables we always use an underscore character and do not use any other punctuation. even though Access allows you to use spaces, etc. it is not a good idea.
CUSTOMERS
| Column | Domain | |
|---|---|---|
| | Data Type | Size |
| Customer_Id (Key) | Integer | 20 |
| Name | Character | 30 |
| Street | Character | 30 |
| City | Character | 25 |
| State | Character | 2 |
| Zip | Character | 5 |
ACCOUNTS
| Column | Domain | |
|---|---|---|
| | Data Type | Size |
| Customer_Id (FK) | Integer | 20 |
| Account_Number (Key) | Integer | 15 |
| Account_Type | Character | 2 |
| Date_Opened | Date | |
| Balance | Real | 12,2 |
| Customer_Id | Name | Address | City | State | Zip |
|---|---|---|---|---|---|
| 123 | Mr. Smith | 123 Lexington | Smithville | KY | 91232 |
| 124 | Mrs. Jones | 12 Davis Ave. | Smithville | KY | 91232 |
| 125 | Mr. Axe | 443 Grinder Ln. | Broadville | GA | 81992 |
| 127 | Mr. & Mrs. Builder | 661 Parker Rd. | Streetville | GA | 81990 |
Accounts Table
| Customer_Id | Account_Number | Account_Type | Date_Opened | Balance |
|---|---|---|---|---|
| 123 | 9987 | Checking | 10/12/89 | 4000.00 |
| 123 | 9980 | Savings | 10/12/89 | 2000.00 |
| 124 | 8811 | Savings | 01/05/92 | 1000.00 |
| 125 | 4422 | Checking | 12/01/94 | 6000.00 |
| 125 | 4433 | Savings | 12/01/94 | 9000.00 |
| 127 | 3322 | Savings | 08/22/94 | 500.00 |
| 127 | 1122 | Checking | 11/13/88 | 800.00 |
How do we enforce business rules ?