Databases Flashcards
State what is meant by the end user requirements of a database?
The end user requirements are the tasks that the database must be able to perform
State what is meant by the functional requirements of a database?
The functional requirements of a database relates to the tasks that the database will be able to perform. The functional requirements take into account the inputs processes and outputs that a database is required to perform in order to function correctly.
State what is meant by a data dictionary and why one might be used?
Data dictionaries are created to define the structure of a database, they are created during the design phase and act as an efficient reference point during the implementation stages.
State the purpose of relational databases?
Relational databases allow information to be stored across multiple tables.
Describe issues that using a relational database can mitigate?
Using relational databases that use primary and foreign keys helps us to avoid issues such as insertion, deletion, or update anomalies in a database
State the types of relationships that can exist in a database?
- One to One relationship
- One to Many relationship
Explain what is meant by a One to Many cardinality in relationships involving entities?
One to Many relationships occur when one entity is able to be present across many other related entities.
State the role of an entity occurrence diagram?
Entity occurrence diagrams show the relationship between the occurrences of a particular entity
State what is meant by an entity occurrence?
An entity occurrence is an example of a particular entity. E.g Maths, Computing, and Physics are all entity occurrences of the subjects entity
State what is meant by a primary key?
A primary key can be defined as a piece of information that uniquely identifies each record in a table or in a relational database
State the purpose of a foreign key?
A foreign key is a key that links two tables together and creates the relationship between the two tables.
Care must be taken when making changes to the foreign key as foreign keys being deleted can destroy the relationship between two entities in a relational database
Explain what is meant by a surrogate key?
A surrogate key is a type of key that is used when an entity does not have a naturally occuring primary key, in this case it is possible to create a new field that acts as a unique identifier for each record in the table
Typically an autonumber field will be used as a surrogate key
Explain what is meant by a composite key?
A composite key is a specific type of primary key that uses information from two fields in a table to create a new field that acts as a primary key.
Explain what is meant by a compound key?
A compound key is a type of primary key that is created from two or more primary keys of other tables
State the different aggregate functions that you are expected to know for higher?
- SUM()
- AVG()
- MAX()
- MIN()
- COUNT()