4.10 Fundamentals of Databases Flashcards

1
Q

Define Data Model

A

An abstract model of which things to store and what information should be stored about them.

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

Define Attribute

A

A characteristic of an entity

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

Name the three relationship between tables in a database.

A

One to One
One to Many
Many to One
Many to Many

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

Define Entity

A

Something about which data can be stored

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

What name can be given to an attribute that can uniquely identify each attribute of a table.

A

Entity identifier / Primary Key

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

Why are databases normalised?

A

So that they can be at their most efficient without any compromise to the integrity of their data.

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

What name is given to a primary key formed from multiple different attributes?

A

Composite Primary Key

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

What name is given to the new table when forming many-to-many relationships?

A

Link Table

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

Which form of normalisation can be described as follows: All non-key attributes depend on the key, the whole key and nothing but the key

A

Third normal form

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

Which declarative language is used to query databases?

A

Server Query Language (SQL)

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

Which of the following commands would return all information from the database?
A: SELECT ALL FROM Vehicles
B: FROM Vehicles SELECT *
C: SELECT * FROM Vehicles

A

C

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

What is the role of a client server database?

A

To provide simultaneous access to a database for multiple clients.

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

What problem occurs when different users try to access the same field simultaneously?

A

Concurrent Access

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

In which form of normalisation are key dependancies removed?

A

Second form Normalisation

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

Name three ways of managing concurrent access.

A
  1. Record Locks
  2. Serialisation
  3. Timestamp ordering
  4. Commitment ordering
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is an Aggregate Function SQL

A

an aggregate function or aggregation function is a function where the values of multiple rows are grouped together to form a single summary value.

17
Q

Count ()?

A

Returns the number of occurrences

18
Q

Sum()?

A

Returns the sum of a numeric column

19
Q

AVG()?

A

Returns the average of a numeric column