databases Flashcards

1
Q

what is an entity

A

an item of interest about which information is stored

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

what is a relational database

A

a database that recognises the difference between entities by creating different tables for each entity

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

what are attributes

A

characteristics of the entity
categories about which data is collected

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

what is a flat file

A

a database that consists of a single file
most likely be based around a single entity and its attributes
Entity1(Attribute1, Attribute 2…)

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

what is a primary key

A

unique identifier for each record in the table
usually underlined

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

what is the foreign key

A

the attribute that links two tables together
exist in one table as the primaryy key and act as a foreign key in another

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

what is a sechondary key

A

allows the database to be searched quickly

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

what are the 3 different entity relationship models

A

1 - 1
1 - many
many - many

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

1 - 1

A

each entity is linked to one other entity

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

1 - many

A

1 table is associated with many other tables

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

many - many

A

1 entity can be associated with many other entities

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

what is normalisation

A

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

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

what does normalisation try to accomplish

A

no redundancy
consistent data throughout linked tables
records can be added and removed without issues
complex queries can be carried out

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

what are the 3 types of normalisation

A

1st normal form
2nd normal form
3rd normal form

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

first normal form

A

there must be no attribute that contains more than a single value

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

second normal form

A

a database which doesnt have any partial dependancies and is in first normal form can be said to be in second normal form. This means that no attributes can depend on part of a composite key

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

third normal form

A

if the database is in second normal form and contains no non key dependancies its in 3rd normal form

18
Q

what is a non key dependancy

A

it means that the attribute only depends on the value of the primary key and nothing else

19
Q

what is indexing

A

a method used to store the position of each record ordered by a certain attribute
used to look up and access data quickly

20
Q

why are primary keys not used for indexing

A

although its automatically indexed its not normall remembered so secondary keys are used

21
Q

3 types of capturing data

A

magnetic ink character recognition
optical mark recognition
optical character recognition

22
Q

magnetic ink character recognition

A

all the details excluding the amount are printed in a special magnetic ink which can be recognised by a computer but the amount must be entered manually

23
Q

optical mark recognition

A

used for multiple choice questions on a test

24
Q

exchanging data

A

process of transferring the collected data

25
what is a way of exchanging data
electronic data interchange doesnt require human interaction and enables data trasnfer from 1 computer to another
26
sql method
select, from, where, order by
27
what does ORDER BY do
specifies if u want it in ascending or descending order
28
what does JOIN do
method of combining rows from multiple tables based on a common field between them
29
what does CREATE do
allows u to make new databases
30
what does ALTER do
add, delete or modify the columns in a table
31
what does INSERT INTO do
used to insert a new record into a database table
32
what is referential integrity
process of ensuring consistency ensures information isnt removed if required somewhere else in a linked database if 2 tables are linked 1 cant be deleted cause the other requires its contents
33
what does ACID stand for
Atomicity Consistency Isolation Durability
34
what is atomicity
a transaction must be processed in its entirety or not at all
35
what is consistency
a transaction must maintain the referential integrity rules between linked tables
36
what is isolation
simultaneous executions of transactions should lead to the same result as if they were executed one after the other
37
what is durability
once a transaction has been executed it will remain so regardless of the circumstances, even if a power cut
38
record locking
process of preventing simultaneous access to records in a database
39
why is record locking used
to prevent inconsistencies or a loss of updates
40
how does record locking work
while 1 person is editing the record it 'locks' so other ppl cant access the same record
41
what is a problem of record locking
deadlock
42
what is redundancy
process of having one or more copies of data in physically different locations so if theres damage the others can be recovered