1.3.2 Databases Flashcards

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

What is a Database?

A

An organised collection of information stored by a computer

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

What is an Entity?

A

A category of object, person, or thing, about which data needs to be recorded

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

What is a Record?

A

Data about a specific entity (rows of a database)

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

What is a Field?

A

A category of information about an entity (columns of a database)

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

What is a Primary Key?

A

An attribute that uniquely identifies a particular record.
e.g.
Customer (CustomerID, title, firstname, surname, email)
Product (ProductID, title, price)
Subscription (SubID, startDate, endDate)

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

What is a composite primary key?

A

When two or more attributes are used to uniquely define
a record
e.g.
Grade(firstName, lastName, class, teacher, grade)

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

Why are primary keys indexed? (2 points)

A

So that they can be searched for faster
If another attribute is also indexed, that is
called a Secondary Key

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

What is Normalisation?

A

A process for organising data in a database to reduce
redundancy and improve data integrity.

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

What is 1st Normal form? (3 points)

A

Data is atomic
No repeated fields
Data has a primary key

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

What is 2nd Normal form? (2 points)

A

Data is in 1NF
Has no partial dependencies

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

What is 3rd Normal form? (2 points)

A

Data is in 2NF
Has no non-key dependencies

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

What is a Flat File Database?

A

A database containing only one table

e.g.
Grades(gradeID, student, class, grade, subject teacher)

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

What is a Relational Database?

A

A database containing more than one table

e.g.
Grade (gradeID, student, class, grade)
Class (class, subject, teacher)

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

What is a foreign key?

A

A field that references the primary key of another table

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

What is transaction processing? (2 points)

A

Transactions need to be
accurate.
* Multiple users need to
interact with a database at
the same time.

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

What is Atomicity?

A

The whole transaction is processed, or none of it is.

17
Q

What is Consistency?

A

Data validation rules cannot be broken.

18
Q

What is Isolation?

A

No transaction should interfere with any other transaction.

19
Q

What is Durability?

A

Once a transaction is done, it’s done.

20
Q

What does ACID stand for?

A

Atomicity, Consistency, Isolation, Durability

21
Q

What is a Time stamp?

A

A time value given to a transaction.

22
Q

What is Serialisation (Timestamp ordering)?

A

Transactions are processed one after the other
based on their timestamp.

23
Q

What is Redundancy?

A

Identical systems are maintained in different
locations so the system never goes down.