1.3.2 Databases Flashcards
Relational Database
Allows the user to specify information about multiple tables and the relationship between those tables
Flat File
A database that allows the user to specify data attributes (columns, databases etc.) for only one table at a time, storing those attributes independently
Primary Key
A field that uniquely identifies a record in a table
Foreign Key
The linking field in the foreign table formed when a relationship is made. The FK becomes by default the PK of the new table.
Concatenated Primary Key
When more than one field is added together to form a unique primary key for a table.
Secondary Key
A key field which can be used to access a table in a different way
Entity Relationship Modelling
The process of producing a data model for describing the data or information aspects of a business domain or its process requirements, in an abstract way that lends itself to ultimately being implemented in a data such as a relation database.
Normalisation
The process of arranging data in tables and setting their relationships to move them through normal forms”
Indexing
The process of creating a database index, which is a data structure that improves the speed of data retrieval operations on a dataset table at the cost of additional writes and storage space to maintain the index data structure.
0NF
A table with no normalisation. All data and all fields in one table
1NF
A relationship with repeating groups removed. That is a relation in which the intersection of each tuple and attribute contains one and only one value.
2NF
A relation that is in 1NF and every non-primary key attribute is fully dependant on the primary key. That is, all the incomplete dependencies have been removed
3NF
A relation that is in 1NF and 2NF, and in which no non-primary key attribute is transitively dependent on the primary key. That is, all non-key elements are fully dependent on the primary key
Normal Forms
A way of structuring the data in a relational database according to formal rules, in order to avoid problems of efficiency and security in accessing and maintain the data.
SQL
The language and syntax used to write and run database queries