Databases Flashcards
what is a database?
In computing, a database is an organized collection of data stored and accessed electronically. Small databases can be stored on a file system, while large databases are hosted on computer clusters or cloud storage
Field length check
only allows a specific number of characters to be entered.
Range check
number entered must be within a certain range, eg between 1-100.
List check
only specific data can be entered, eg male or female.
Present check
the field cannot be left empty.
Input mask
data must be entered in a specific way, eg including a space between the first and last part of a postcode.
table
A table is a collection of related data held in a table format within a database.It includes fields and records
Record
A record is all of the data or information about one person or one thing.
Field
a ‘field’ is one piece of data or information about a person or thing.
Foreign key
A foreign key is used to link tables together and create a relationship. It is a field in one table that is linked to the primary key in another table.
Referential integrity
Referential integrity uses these to ensure that there are no orphan records i.e. it prevents you from deleting related records.
Referential integrity can also alert you if you try to delete a record which is related to another one.
It can also be used to cascade changes made to the database.
Reports
Reports present data clearly, so that they are easy to read.
Forms
Forms make entering data into a database simple.