Database Design and Development Flashcards
What are End-User Requirements in databases?
End-User Requirements are the things that the end-users want the database to be able to do.
What are Functional Requirements in databases?
Functional Requirements are processes that a database must be able to carry out.
eg. the fields that the database must have.
What are databases made of?
Databases are made of entities and attributes.
Entities become tables during implementation. What are entities?
Entities are:
- a person
- a place
- an object
- a thing
Attributes become fields during implementation. What are attributes?
Attributes are characteristics of entities. Examples of attributes are:
- firstName
- lastName
- address etc.
What are Primary Keys (PK)?
Primary Keys are unique identifiers of entities.
What are Foreign Keys (FK)?
Foreign Keys are what links two or more tables together.
What is it necessary to show in databases?
Relationships between tables
What do data dictionaries do?
Data dictionaries define the structure of the database.
What do data dictionaries hold information on?
Data Dictionaries contain;
- Names of entities
- Names of attributes
- Data types of attributes
- Size of attributes
- Indication of primary keys or foreign keys
What are the field types and what do they hold?
Text - holds any character/number
Number - holds only numbers (but not telephone numbers)
Boolean - True/False
Date - stores dates
Time - stores times
What are the four types of input validation?
- Presence Check
- Restricted Choice
- Field Length
- Range Check
What is a Presence Check?
Presence Checks are pieces of validation which make any data in a field compulsory.
What is a Restricted Choice?
Restricted Choice limits the amount options a user can input thus cutting down the number of execution errors.
What is Field Length?
Field Length restricts the amount of characters a field can hold.