Databases Flashcards
A database consists of three parts, what are they?
File
records
fields.
What is a database file
A database file stores all of the information on a particular subject. It is made up of records
What is a database record?
A record stores all the information about one person/thing. It usually consists of several different fields.
What is a data base field?
A field stores one piece of information such as: Forename, Surname, Address
What is a flat file database?
- Flat file databases consist of one table. As a result, a large database will most likely have data which is repeated
What is a linked database?
Separating the data into different tables makes it easier to manage. Two or more tables can be linked together. This prevents having to enter data more than once, having to update the same information many times, and possibly accidentally deleting data.
What is a primary key?
a field used to uniquely identify every record in the database.
What is a foreign key?
a primary key from one table that appears in another table to link the two together.
What are four types of validation check?
Presence
Restricted Choice
Field length
Range check
Presence check
A presence check makes the person using the database enter something in this field. It can’t be blank
Restricted Choice check
Restricted choice cuts down on mistakes by only letting you select an option from a menu or list i.e. a dropdown box for months.
Field Length check
Field length restricts the number of characters typed.
Range check
A range check makes sure data entered is within certain limits. >
Advantages of Searching and Sorting
Easy to add new information – a search tries to find matches for whatever you search for.
Easy to sort information – a sort orders the data on a field which you choose. You can sort in ascending order or descending order.
Easy to search through millions of records to find one specific match.
Complex search
A complex search is a search, or even a sort, which takes place in more than one field (ie two or more fields) – sometimes many details are entered in a search