Anda di halaman 1dari 4

INLS161.003.

FA15 Database Assignment 5


Required Tables and Naming Conventions
When you use the Access import tool with the Excel source file
provided, it will create tables with
fields
based on Excel column headings
records based on Excel rows
but your finished tables will require you to create additional fields in
the tables after the import process.
Book Table should include the following fields, whether in the
import phase or by you creating them after the import phase
1. tblBook_ID field: this will be the Primary Key
2. tblBook_Title field
3. tblBook_Date field
o

the publication or copyright date

be careful about the field property - should it be number,


text, or date/time?

4. tblBook_Shelf Location field


o

its Library of Congress number

be careful about the field property - is it a number?

5. tblBook_Language field: with appropriate data type


6. tblBook_Topic field: with appropriate data type
7. tblBook_RetailPrice field: with appropriate data type
8. tblBook_Copies field: with appropriate data type
9. tblBook_tblPublisher_ID field

this will link this table to others

be sure to make its field size Long Integer

Publisher Table should include the following fields, whether in


the import phase or by you creating them after the import
phase
1. tblPublisher_ID field: this will be the Primary Key
2. tblPublisher_Name field
3. tblPublisher_City field
4. tblPublisher_State field: two letter abbreviation
5. tblPublisher_ZipCode field
o

with appropriate data type and input mask

if there is no data for this field, you may leave it blank or


make it up for new publishers you add to the table

6. tblPublisher_Phone field
o

with appropriate data type and input mask

if there is no data for this field, you may leave it blank or


make it up for new publishers you add to the table

7. tblPublisher_Country field: two letter abbreviation


Author Table should include the following fields, whether in
the import phase or by you creating them after the import
phase
1. tblAuthor_ID field: this will be the Primary Key
2. tblAuthor_Name field: last name and first name
Connection Table
[this table will become important when we get to
relationships]
1. tblConnection_ID field: this will be the Primary Key

2. tblConnection_tblBook_ID field
o

this will link this table to the book table

be sure to make its field size Long Integer

3. tblConnection_tblAuthor_ID field
o

this will link this table to the author table

be sure to make its field size Long Integer

You have one table that you will have to create from scratch
using your choice of table creation tools
Concentrate on setting up the table design correctly. You will
not be adding live data to this table until a subsequent session
and task.
Order Table
1. tblOrder_ID field
o

this will be the Primary Key

you will have to create a primary key for this table and you
might as well allow the wizard to use an autonumber for
this purpose

2. tblOrder_BookTitle field
o

you must identify the title of the book you will order

the data in this field in the Order Table may well come from
a field in another table, but we'll discuss that when we
relate tables

you will probably want to rename this field as you decide


how to relate tblOrder to another table

3. tblOrder_NumberOfBooksOrdered field: with appropriate data


type
4. tblOrder_DateOfOrder field: make the current date the default
value for the date the book was ordered

5. tblOrder_DateOrderReceived field: appropriate data format


6. tblOrder_DiscountPrice field
o

with appropriate data type

add in your description of this field that it will always be no


more than 80% of the retail price of a book

this field is included to allow us to do some calculations in


queries

We have not yet at this time decided what field will link the Order
Table to another table; that will come during the discussion of
relationships.
Don't forget - every table needs a primary key!
In all these tables, you may or may not add data fields at a later date
as you construct relationships between the tables. For today, however,
concentrate on creating the tables.

Anda mungkin juga menyukai