18. Relational Database Concepts Flashcards
(51 cards)
CONSTRUCTING TABLES AND FIELDS
define datatype
a field property that sets the sort of data that can be stored in the field
Text.
Q: How many characters can a Short Text field hold in Access?
A: Up to 255 characters
The most commonly used datatypes are:
Text.
Number
Date and time
Currency
Boolean.
Q: Approximately how much data can a Long Text field store?
A: Up to about 1 gigabyte
Number
The different sizes available for numeric fields are:
byte - stores whole numbers from 0 to 255 only
integer - stores whole numbers (positive and negative) from -32,768 to 32,767
long integer - stores whole numbers from around -2,147 million to 2,147 million
double - used for floating point numbers, up to about 15 digits long
decimal - used for fixed point numbers where precision is important (such as scientific
research results).
Date and time
Q: What is the default short date format in Access for the UK region?
A: dd/mm/yyyy
Explain Currency
A special type of number preformatted with a currency symbol and set to two decimal places.
Explain Boolean.
This datatype can only be set to one of two values, true or false, although
it can be formatted as other binary values such as yes/no or on/off.
Evaluating the choice of datatypes
Q: Why is choosing the correct datatype important in a database?
A: To ensure correct data storage, efficient processing, and minimal storage requirements.
Q: If a customer is unlikely to order more than 30,000 items, which datatype is best for a quantity field?
A: Integer (not Long Integer)