1.3.2 Databases

studied byStudied by 4 people
0.0(0)
Get a hint
Hint

What is an entity?

1 / 47

flashcard set

Earn XP

48 Terms

1

What is an entity?

An item of interest about which information is stored

New cards
2

What is a relational database?

A database which recognises the differences between entities

New cards
3

What is a flat file?

A database that consists of a single file, doesn’t necessarily need a primary key

New cards
4

What is a primary key?

A unique identifier for each record in the table, for example CarID for a table of car information

New cards
5

What is a foreign key?

The attribute which links two tables together. Exists as primary in one table and foreign in another.

<p>The attribute which links two tables together. Exists as primary in one table and foreign in another.</p>
New cards
6

What is a secondary key?

Allows a database to be searched quickly, acts as a secondary index to order and search

New cards
7

What is one-to-one database relation?

Each entity can be linked to 1 other entity, such as husband and wife

New cards
8

What is one-to-many database relation?

One entity can be related to many other entities, such as a mother with multiple children

New cards
9

What is many-to-many database relation?

One entity can be associated with many other entities and the same applies the other way round

New cards
10

Entity relationship diagrams

Bird foot diagram

<p>Bird foot diagram</p>
New cards
11

What is normalisation?

Process of coming up with the best possible layout for a relational database

New cards
12

What are the 3 types of normalistation?

First normal form, second normal form and third normal form

New cards
13

What is first normal form?

No attribute that contains more than a single value, as well as no repeating groups of attributes

New cards
14

What is second normal form?

A database which doesn’t have any partial dependencies and is in first normal form.

New cards
15

What is 3rd normal form?

If database is in 2nd form and contains no non-key dependencies it is in third normal form

New cards
16

Ways of capturing data

Manual entry, Magnetic Ink Character Recognition, Optical Mark Recognition, Optical Character Recognition

New cards
17

MICR

Magnetic Ink Character Recognition, used by banks for cheques

New cards
18

OMR

Optical Mark Recognition, used for multiple choice questions on a test

New cards
19

OCR

Optical Character Recognition, used for other forms of responses on tests than multiple choice

New cards
20

Selecting and Managing data

Important part of data pre-processing, involving selecting data that fits a certain criteria to reduce the volume of input

New cards
21

Exchanging data

Transferring the collected data, commonly EDI (electronic data interchange), which requires no human interaction

New cards
22

SQL

Structured query language, declarative language used to manipulate databases

New cards
23

SELECT

Used to collect fields from a given table

New cards
24

FROM

Specifies which table information will come from

New cards
25

WHERE

Specifies the search criteria

New cards
26

ORDER BY

Specifies whether you want it in ascending or descending order

New cards
27

JOIN

Combines rows from multiple tables based on a common field between them

New cards
28

CREATE

Allows you to create new databases

New cards
29

ALTER

Add, delete, modify

New cards
30

UPDATE

Update a record in a database table

New cards
31

DELETE

Delete a record from a database table

New cards
32

Data types

CHAR, VARCHAR, BOOLEAN, INT, FLOAT, DATE, TIME, CURRENCY

New cards
33

Referential Integrity

Process of ensuring consistency, such as making sure data is not removed if it is required elsewhere. No foreign key in one table can reference a non-existence record in a related table.

New cards
34

Transaction processing

Single operation executed on data

New cards
35

ACID

Atomicity, consistency, isolation, durability

New cards
36

Atomicity

Transaction must be completed in its entirety or not at all

New cards
37

Consistency

Must maintain referential integrity rules

New cards
38

Isolation

Simultaneous executions of transactions should lead the to the same result as if they were run one after another

New cards
39

Durability

Once a transaction is executed it will remain so regardless of other circumstances

New cards
40

Record Locking

Preventing simultaneous access to records in a database in order to prevent inconsistencies or loss of updates

New cards
41

Deadlock

Problem with record locking where two or more transactions are waiting for each other to release locks, causing a standstill.

New cards
42

Database

The simplest kind is a flat file, containing information about at least one entity

New cards
43

How are entity descriptions written

Customer (custID, title, firstName, surname. email), where custID is the primary key

New cards
44

Composite primary key

A primary key that consists of two or more attributes to uniquely identify a record in a database table, such as OrderLine (OrderNumber, OrderLine, ProductID)

New cards
45

Timestamp ordering

Deadlock prevention - when a user saves an update if the read timestamp is not the same as it was when they started the transaction then another user has accessed the same object

New cards
46

Commitment ordering

Transactions are ordered in terms of dependencies on one another as well as time they were initiated.

New cards
47

Redundancy

Backup systems which automatically take over when the main system fails

New cards
48
New cards

Explore top notes

note Note
studied byStudied by 4 people
... ago
5.0(1)
note Note
studied byStudied by 94 people
... ago
5.0(1)
note Note
studied byStudied by 433 people
... ago
5.0(3)
note Note
studied byStudied by 33 people
... ago
5.0(1)
note Note
studied byStudied by 28 people
... ago
5.0(1)
note Note
studied byStudied by 32 people
... ago
5.0(2)
note Note
studied byStudied by 11 people
... ago
5.0(1)
note Note
studied byStudied by 29 people
... ago
5.0(1)

Explore top flashcards

flashcards Flashcard (121)
studied byStudied by 2 people
... ago
5.0(1)
flashcards Flashcard (84)
studied byStudied by 13 people
... ago
5.0(1)
flashcards Flashcard (20)
studied byStudied by 16 people
... ago
5.0(1)
flashcards Flashcard (27)
studied byStudied by 8 people
... ago
5.0(1)
flashcards Flashcard (83)
studied byStudied by 12 people
... ago
5.0(1)
flashcards Flashcard (53)
studied byStudied by 2 people
... ago
5.0(1)
flashcards Flashcard (48)
studied byStudied by 50 people
... ago
5.0(1)
flashcards Flashcard (24)
studied byStudied by 16 people
... ago
5.0(1)
robot