Setting Field Properties Flashcards
(38 cards)
What is good database design?
Turning information items into columns
How do you determine the columns in a table?
Decide what information needs to be tracked about the subject of the table
What are some example columns for a Patient table?
- Patient Name
- Current Address (Number, Street, City, Province, Postal Code)
- Permanent Address
- Phone Number (Home, Work, Cell)
- HCN
- Version Code
- Emergency Contact
What should each record in a table contain?
The same set of columns
What is the benefit of storing patient name as two separate columns?
Allows sorting, searching, and indexing on just those columns
How can the address be separated in a database?
PCS separates #, street, city, state, country
What should be considered when storing addresses?
Whether the database will hold information of Canadian origin only or international as well
What is the recommendation regarding calculated data?
Don’t include calculated data; use ACCESS to perform calculations when needed
What is a primary key?
A column or set of columns that uniquely identifies each row stored in the table
Why should you not use people’s names as a primary key?
Names are not unique
What must a primary key always have?
A value
What happens if a primary key changes?
The change must be applied everywhere the key is referenced
What is the purpose of using an arbitrary unique number as a primary key?
To identify a record uniquely without factual information that might change
What is the significance of the AutoNumber data type?
Access automatically assigns a value for you, creating a fact-less identifier
What is a field in a database table?
A column where data resides, holding one piece of data
What determines the type of data a field can store?
The field’s data type
What happens if you enter data in a blank column?
Access assigns a data type to the field based on the values entered
What is the maximum character limit for a Short Text field?
255 characters
What type of data should be stored as a Number data type?
Numerical data that will be used for calculations
What are the basic types of data in Access?
- Short Text
- Number, Large Number
- Currency
- Yes/No
- Date/Time
- Rich Text
- Calculated Field
- Attachment
- Hyperlink
- Long Text
- Lookup
How are calculated fields created in Access?
Using the Expression Builder to refer to other fields in the same table
What is the typical use of a Long Text field?
For detailed product descriptions
What is the function of a Lookup field?
Displays a list of values retrieved from a table or query or a set of specified values
What is a typical use of a Long Text field?
A detailed product description
Long Text fields are ideal for extensive information that requires more than a single line.