1.3.2 Databases - Atharwa Flashcards

(21 cards)

1
Q

What is an Entity?

A

An item, object or thing a database is about

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

What is a flat-file database?

A

A database where data is all stored on one large table

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

What is a relational database?

A

Data stored in separate tables linked with foreign keys

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

What is a Primary key?

A

A field which can be used to uniquely identify a record

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

Name ways of collecting data

A

Webforms, Barcodes, QR codes, Written forms with optical character recognition, Magnetic ink/ stripes

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

What are the requirements of 1NF?

A

Must have a primary key, data must be atomic, no repeating attributes, each field must a unique.

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

What are the requirements of 2NF?

A

Must be in 1NF, no partial dependencies.

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

What are the requirements of 3NF?

A

Must be in 2NF, no transitive dependencies.

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

What is a partial dependency?

A

When a field only depends on a part of a composite key, not all of it.

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

What is a transitive dependency?

A

When a field depends on another field that isn’t a primary/composite key

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

What is a transaction?

A

A change made to a database.

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

What is meant by Atomicity?

A

A transaction must be fully completed for it to be recorded.

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

What is meant by Consistency?

A

Any changes made must not break the database, keeping it consistent with how it was before.

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

What is meant by Isolation?

A

A transaction must be kept isolated so it doesn’t interfere with other transactions.

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

What is meant by Durability?

A

A transaction must remain in the database once saved

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

What is meant by Data Integrity?

A

Data integrity is making sure that data remains accurate, complete and consistent, without being lost, changed or corrupted.

17
Q

How is Data integrity maintained?

A

Use of validation and verification.

18
Q

What is Referential Integrity?

A

the principle of ensuring that relationships between linked database tables remain valid, consistent, and accurate

Eg. Ensuring that an order cannot be placed if the customer does not exist in the customer table

19
Q

What is Redundancy?

A

Multiple clones of the same database kept at different places with backups to use if one of them is lost

20
Q

Name 3 relationships used in an entity relationship diagram

A

1 to many, many to many, many to one

21
Q

What is ACID

A

Atomically
Consistency
Isolation
Durability