Section 10 DBs Flashcards

1
Q

What is a relational database?

A

A method of creating a database using tables of related data, with relationships between the tables

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

What is a table?

A

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

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

What is an entity?

A

An object about which data will be sorted

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

What is 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
5
Q

What is a primary key?

A

A primary key is an attribute that can be used to uniquely identify every resort in that table

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

What is an entity identifier?

A

An attribute which can uniquely identify each instance of an entity

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

What is a foreign key?

A

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

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

What is normalisation?

A

The process of ensuring that a relational database is structured efficiently and ensuring all data is atomic

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

What is the first normal form?

A

First normal form I’d achieved by ensuring that a table does not contain repeating attributes and that all of the data in the table is atomic.

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

What is second normal form?

A

Second normal form is achieved by ensuring that the data is atomic and by removing the attributes that depend upon part but not all of the primary key

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

What is third normal form?

A

Third normal form is achieved by ensuring the data is in second normal form then removing non key attributes that depend on 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 SQL

A

Structured query language (SQL) is a specialised programming language for manipulating databases.

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

What is a table?

A

A table is 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
14
Q

What is syntax?

A

Syntax I’d the rules of how words are used within a given language.

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

What is a query?

A

A query is a search or sort carried out on data that retrieved the answer to a question

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

What is a database management system?

A

It is software that enables the management of all aspects of a database including adding, updating and querying data

17
Q

What is a client sever database?

A

It is a way of implementing a database where the database is put into a server and various users can access it from their workstation. The processing, eg running a query, will take place on the database

18
Q

What is one issue with concurrent access on a shared database?

A

One common problem with this type of database is that when multiple users try to access/modify the same data at the same time.

19
Q

What is a record lock?

A

A record lock is one way to prevent concurrent issues is, it essentially puts a temporary lock on the data that is being edited so that no other users can edit that data at the same time

20
Q

What is serialisation

A

Serialisation is the process of only allowing one transaction to be executed at a time. By using the DBMS ensures that each transaction happens after each other.

21
Q

What is timestamp ordering?

A

Every database transaction gets a read and write timestamp.
Used to ensure serialization by sequencing transactions.
Prevents concurrency issues by determining the last action on a record.
DBMS decides whether to execute a transaction based on timestamps.

22
Q

What is commitment ordering?

A

Orders commands based on when they were made and their impact.
Prevents deadlocks by blocking conflicting transactions until dependencies are resolved.
Uses a transaction dependency graph for execution order.