4.10 Fundamentals of databases Flashcards

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

`What are the characteristics of serial files? (3)

A
  1. data is stored in the order in which it is entered
  2. No order to the data is maintained
  3. useful for storing transactional and initialisation files
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are characteristics of a sequential file (3)

A
  1. stores data in the order of a key field
  2. order is maintained when new records are added.
  3. useful for storing master files
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a database? (1-2)

A

A structured persistent collection of data.

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

What components must a database have (2)

A
  1. tables that store data in rows and columns
  2. queries with which to manipulate data
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Advantages of using a database when handling large datasets ( 4)

A
  1. Makes processing more efficient
  2. Reduces storage requirements
  3. Avoids redundancy
  4. Allows different users to only see relevant data.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Which additional layer of software manages the database (1)

A

The DBMS - database management system

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

What services does the DBMS provide
(5)

A
  1. A language with which to manipulate data.
  2. Additional security
  3. Structural integrity
  4. Program/data independence.
  5. An interface for other programs to use data.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is a flat file database? (3)

A

Allows the user to specify data attributes for only one table at a time

storing those attributes independently.

There is no link between the different tables.

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

What is a relational database(2)

A

Similar to flatfile, but allows user to specify information about the tables and the relationships between them.

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

What is normalisation (1)

A

concept of splitting up tables in a database and arranging the data to move it from 1NF, 2NF and 3NF

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

When is table in 1st normal form (2)

A
  1. if it contains no repeating attributes or groups of attributes
  2. All attributes must be atomic
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

what does atomic mean in the concept of normalisation (1)

A

A single attribute cannot consist of two data items such as first-name and surname.

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

What is a composite key (1)

A

A combination of two or more columns in a table that can be used to uniquely identify each row in the table.

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

When is 2NF achieved (2)

A
  1. Must be in 1NF
  2. No partial dependencies
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

In the context of normalisation what are partial dependencies ? (1)

A

One or more attributes depends on one part of the primary key ( only in cases of composite keys0

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

What are the three keywords used in deleting from a data table using SQL

A

DELETE FROM(table) WHERE(condition)

17
Q

Keywords used when inserting a new row into a table

A

INSERT INTO(table) VALUES(values)

18
Q

Selecting data from a table using SQL

A

SELECT (fields) FROM (table) WHERE condition

19
Q

Inserting specific data into a table

A

INSERT INTO (table) ((fields)) VALUES(values)

20
Q

Keywords for updating values in a datatable

A

UPDATE
SET
WHERE

21
Q

What is transaction processing

A

Any information processing which is divided into individual, invisible operations

22
Q

What base functionalities do all relational database systems (4)

A

CREATE
READ
UPDATE
DELETE

23
Q

What does a client - server database provide

A

Provides simultaneous access to the database for multiple clients, known as concurrent access

24
Q

How can the problem of updates be lost if two clients edit a record at the same time fixed

A

Record locks, a record is locked when a user retrieves it for editing or updating

25
Q

What is serialisation / timestamp ordering

A

every record has a read and a write timestamp.

When trying to write to a record, if the read timestamp is not the same as when it was originally accessed

the Database Management System knows that another user has accessed the record.

26
Q

What is commitment ordering

A

In commitment ordering, no transactions are lost if two users try to access the same record at the same time. Transactions are ordered by their dependencies.