8.1 Databases.concepts Flashcards
What is a database?
A structured collection of data items that can be accessed by different application programs.
What is a relational database?
A database where data items are linked by internal pointers.
What is a table in a database?
A group of similar data with rows for each instance of an entity and columns for each attribute.
What is a record in a database?
A row in a table representing one instance of an entity.
What is a field in a database?
A column in a table representing an attribute of the entity.
What is a tuple in a database?
One instance of an entity, represented by a row in a table.
What is an entity in a database?
Anything that can have data stored about it, such as a person, place, event, or thing.
What is an attribute in a database?
An individual data item stored for an entity, like a name, address, or date of birth.
What is a candidate key?
An attribute or smallest set of attributes where no two tuples have the same value.
What is a primary key?
A unique identifier for a table, which is a special case of a candidate key.
What is a secondary key?
A candidate key that serves as an alternative to the primary key.
What is a foreign key?
A set of attributes in one table that refers to the primary key in another table.
What is a relationship in a database?
A situation where a table has a foreign key that refers to a primary key in another table.
What is referential integrity?
A database property ensuring no foreign key values exist without matching the corresponding primary key.
What is an index in a database?
A data structure built from one or more columns in a table to speed up searching.
What is an Entity-Relationship (E-R) model or diagram?
A graphical representation of a database and the relationships between entities.
What is normalisation in a database?
The process of organising data into two or more tables and relationships to minimise redundancy.
What is First Normal Form (1NF)?
A relational database status where entities do not contain repeated groups of attributes.
What is Second Normal Form (2NF)?
A database in 1NF where non-key attributes depend entirely on the primary key.
What is Third Normal Form (3NF)?
A database in 2NF where all non-key attributes are independent of each other.
What is a composite key?
A set of attributes that together form the primary key to uniquely identify a table record.
What is a file in computing?
A collection of items of data, often structured as records made up of fields containing data about the same ‘thing’.
What is a data item?
An individual element of data within a record or field.
How does the organisation of records in a program affect data processing?
Records can be fixed or variable in length and may contain information about their structure, requiring programs using them to follow the same structure.