Relational Databases Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is the definition of a table?

A

A method for implementing an entity and attributes as a group of related data

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

What is the definition of an entity?

A

An object about which data will be stored

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

What is the definition of an attribute?

A

A characteristic or piece of information about an entity, which would be stored as a field in a relational database

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

What is the definition of a primary key?

A

An attribute in each table that uniquely identifies each record

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

What is the definition of a foreign key?

A

An attribute in a table that is a primary key in another table and is used to link tables together

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

What is the definition of normalisation?

A

The process of ensuring that a relational database is structured efficiently

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

What is the definition of a composite key?

A

Two or more attributes used in combination to key a primary key

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

What is the definition of a relationship?

A

The link created between two entities

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

How is first normal form achieved?

A
  • Ensuring that a table does not contain repeating attributes or groups
  • All the data in the table is atomic
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How is second norm form achieved?

A

• Ensuring database is in the 1NF
• Removing attributes that depend upon part of but not all of the primary key
-> by creating additional tables

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

How is third normal form achieved?

A
  • Ensuring the database is in 2NF

* Removing non-key attributes that depend upon other non-key attributes by creating additional tables

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

What is the definition of a relation?

A

A relation is a data structure which consists of a heading and an unordered set of tuples which share the same type

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

Name three key differences between flat file and relational databases.

A
  • Flat file databases store all data in one table
  • Flat file databases are less secure than relational databases
  • Flat file databases are more likely to be subject to data redundancy
  • Relational databases are more difficult to maintain
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What happens when relationships have been created between tables?

A

The tables become one database

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

What technique must you use when deciding on how many tables are needed?

A

Normalisation

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

What is the definition of an entity relationship diagram?

A

A visual method of describing relationships between entities

17
Q

What should any many-to-many relationships be replaced by?

A

One-to-many relationships

18
Q

What happens if not every record can be identified individually?

A

Relationships between tables cannot be made

19
Q

What are the three possible solutions for when records have the same primary key?

A
  • Use a unique attribute
  • Create a unique attribute
  • Use a composite key
20
Q

When does redundant data occur?

A

Redundant data occurs when the same field is unnecessarily duplicated in two or more tables

21
Q

What is data inconsistency?

A

Data inconsistency is when the same data is stored multiple times

22
Q

What does it mean to store data at an atomic level?

A

Storing data at an atomic level means that the data cannot be further decomposed

23
Q

What are the three characteristics that a relational database design must have to be fully normalised?

A
  • all data must be atomic
  • should be no partial dependencies, where a non-key attribute depends upon part of but not all of the primary key
  • should be no non-key dependencies, where a non-key attribute depends upon another bon-key attribute