Databases Flashcards
What are end-user requirements?
a document that details what the client wants to be able to do with the database
Who is the end-user?
The person, people or business who will use the completed database
What are the functional requirements?
used to describe what the database will do and the types of operations it should be able to perform.
What is the requirements specification?
A legally binding document composed of the end-user and functional requirements that usually forms the basis pf a contract between the client and developer.
What is a database?
A structured collection of similar information which you can search through
What is a database package or database management system?
A program that is used for organising data on a computer system
What is a file?
A collection of structured data on a particular topic
What is a record?
a collection of structured data on a particular person or thing made up of one or more fields.
What is a field?
an area of a record that contains an individual piece of data
What is a flat file database?
A database that is contained in a single table
What are the problems with a flat file database?
Data is often duplicated and wastes storage and memory and the database can be inconsistent
What is a relational database?
A database that contains links between between tables
What is an entity?
any object we want to store information about. Usually a person, thing, event or location.
What is an attribute?
an individual data element in an entity
What is a primary key?
a field that has unique value that can be used to identify a record. It cannot be empty.
What is a foreign key?
a field in a table that links to the primary key in a related table.
What are the three types of relationships?
one-to-one, one-to-many and many-to-many
What is a data dictionary?
a table that contains all the elements to be present in the database once it is implemented.
What should a data dictionary include?
the entity name, attribute name, primary key and foreign key
What are the data types?
text, number, date, time and Boolean.
What is the validation column for?
To check that an item of data is sensible and allowed
What are some examples of validation checks?
presence check, restricted choice, field length and range
What is a presence check?
A check to be sure that a field is not empty.
What is a restricted choice?
a list of options to choose from to limited the answers to only pre-approved ones.
What is a field length check?
a check that ensure that the a field contains the correct number of characters or numbers
What is a range check?
a check made on fields that contain numbers to keep the data within given limits.
What is entity integrity?
it is present when a table has a primary key that is unique and not null
What is referential integrity?
It ensures that a value in one table references an existing value in another table. (a foreign key must exist as a primary key in another entity)
What is a query?
a statement used to search the tables for specific information or to sort data contained in the tables.
What does GDPR stand for?
The General Data Protection Regulation
What are the four column types?
INT, DATE, VARCHAR, Boolean
What is the function of a SELECT FROM query?
to query the database for specific information
Which query will change values in EXISTING rows?
UPDATE
What are an individual’s rights under GDPR? (there are 8)
- the right to be informed
- the right of access
- the right to rectification
- the right to erasure
- the right to restrict processing
- the right to data portability
- the right to object
- rights in relation to automated decision making and profiling.
What must be included in dot notation?
table name and field name separated by a dot