Data Bases Flashcards

1
Q

What is a database

AND

why are they used

A

A data base is a series of organised data

used because:

  • doesnt take up a lot of room
  • can be easily edited
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what is a flat file data base and what are the problems associated with them

A

Database with only one table

problem:
data duplication which results in greater chance of human error

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

what is a relational database

A

Database with many linked tables

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

Name and describe the tpyes of validation

A

Range: checks data is within a limit

e.g cost > 0 AND cost

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

Name and describe the field keys

A

Primary: a unique identifier

Foreign: used to link tables together

Compound: combines more than one field to make a unique value

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

What are the different types of data base relationships

A
  • one to one
  • one to many
  • many to many
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

A many to many relationship is bad. How can it be overcome

A

Create new table to allow relationship to become one to many

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

Why would a database form be used

A

Reduces entry errors

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

How do we perform a query

A

Tablename.Fieldname and criteria = X

Example:

Dog.Dogname and criteria = Olly

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

Name two database functions

A

Sum

IFF

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

What is the sum function used for

A

Total the values in a numerical field

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

What is the IFF function used for

A

Determines if an expression is true or false

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

Why are database reports used

A

To summarise and present data in a table

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