T1. Databases Flashcards

1
Q

What is a database?

A

A database is a collection of data items structured so that data can be searched and retrieved when necessary.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the main features of a relational database?

A

Data is stored in tables consisting of records. Each record is uniquely identified by a primary key. The tables are linked via primary keys and foreign keys.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is an attribute?

A

An attribute is each data item within an entity, such as the Title of the Book.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is an entity?

A

An entity is an object or subject about which information is stored, such as a member.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a primary key?

A

A primary key is an attribute which uniquely identifies an entity record, such as BookID.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a composite key?

A

A composite key consists of two or more key fields, each of which may be a primary key in another table, which together uniquely identifies an entity occurrence.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a foreign key?

A

A foreign key is a key field in a table which is not the primary key in this table, but which defines a link to another table, example CustID.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is referential integrity?

A

Referential integrity means a foreign key must correspond to a valid/existing primary key.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is data duplication?

A

Data duplication refers to data which is re-entered frequently, taking up unnecessary data space and becoming redundant.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is data inconsistency?

A

Data inconsistency occurs when data is entered many times, increasing the chance of error.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is a logical data model?

A

A logical data model is produced during the design of the database and is independent of the database software. It identifies the relations between entities, the attributes, and keys for each entity.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is a physical data model?

A

A physical data model is produced during implementation and defines the physical structure of the database, including table structure, column names, data types, and validation rules.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is un-normalised data form?

A

To create un-normalised data form, select a name for the main entity and list each field contained within the entity in brackets. Primary keys are underlined, foreign keys are represented with *, and repeating groups are contained within {}.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is data modelling?

A

Data modelling is used when designing relational databases. It produces Entity Relationship (ER) diagrams and constructs plans for the table design.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is First Normal Form (1NF)?

A

Data is said to be in 1NF if all attributes are atomic and entities do not have repeating groups.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is Second Normal Form (2NF)?

A

Data is in 2NF if it fulfills the conditions for 1NF and all non-key attributes in the relation are fully dependent on the primary key.

17
Q

What is Third Normal Form (3NF)?

A

Data is in 3NF if it is in 2NF and there are no non-key dependencies, meaning an attribute does not depend on another attribute that is not the primary key.

18
Q

What are the components of a data dictionary?

A

A data dictionary contains descriptions about the data held in a database, including field name, field size, formal, default value, identification of keys, and validation rules.

19
Q

What is SQL?

A

SQL is a programming language for creating, accessing, and manipulating databases. It provides commands to create tables and to insert, search, update, and delete records.

20
Q

What is QBE?

A

QBE provides a graphical way of querying a database, where the user enters commands, example elements, and conditions into a blank form to specify fields and values to be used in a query. QBE generates SQL code.