Database Design and Development Flashcards
What is a database?
A database is a structured collection of similar information that can be accessed easily
What is a flat file database?
A flat file database is a database that contains a single table
What is an end user requirement of a database?
An end user requirement of a database system is the task that the user would want to be able to carry out
What is a functional requirement of a database?
The functional requirements of a database are the processes that the system has to perform
and the details of the data that the database will store
What is the GDPR?
GDPR (General Data Protection Regulation) is legislation which sets out rules for the protection of personal data
What does GDPR allow individuals the right to?
Individuals have the right to:
-Be informed about how their personal data will be used
-See any data held about them
have any inaccurate data held about them updated
-Have information about them deleted once there is no longer a reason for holding it
-Object to being included in direct marketing campaigns
what must businesses do according to GDPR?
Businesses must:
-Store all data securely
report any data breach within 72 hours
-Ensure that any data held about an individual is accurate
-Provide access to data held about an individual when requested by the individual
What is an entity?
An entity is an object about which a database will store information
An entity can be a person, an object or something abstract
What is an attribute?
An attribute is an item of information that relates to particular entity
Example:
-forename
-make
-DOB
What is a primary key?
A primary key is a field which uniquely identifies a record in a database
In database design, primary keys are underlined
What is a foreign key?
A foreign key is a primary key from one table which is used in a second table to link the tables together
In database design, foreign keys are shown with an asterisk
What is attribute size?
The size of an attribute is a measure of how much space the field will take up when stored in main memory or backing storage
The size of a Text attribute is the number of characters which will be stored. If the attribute size is too small, it may result in data being lost
What is presence check?
A presence check ensures that data is entered in a field
Use a presence check to ensure important information is entered e.g. name, postcode, DOB
What is restricted choice?
Restricted choice limits data entry to a set of acceptable values
Use a restricted choice check to limit data entry
e.g. Restrict car colour choices to: red, white, silver, black, blue and grey
Restrict clothing size options to: S, M, L, XL and XXL
Restrict currency choices to: GBP, USD, CAN, EUR and AUD
What is field length validation?
Field length validation limits the number of characters that can be stored in a field
Example:
Fields from a film table might use field length validation as follows:
Film name (25)
Certificate (3)
Genre (15)
Director forename (12)
Director surname (15)