chapter 18-databases Flashcards

1
Q

what is

A

software program used to store data in a structured way, it includes data dn links between data items

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

whatre the 3 ways databases store data

A

-fields (single item of dataw with a field name)
-records (collection of fields)
-files (organised collection of records)

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

what are the 2 types of files

A

-flat file database
-relational database

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

whats a flat file database

A

simple strucure where data held in td tables with rows and columns
stored in single file
suitable for uses w one type of data (ex car data) a

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

whats a relational database

A

stores data in more than 1 linked table in a single file
used w more than 1 type of related data (ex cars sold and customers)

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

whats the primary key

A

holds unique data (no records are the same)

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

whats a foreign key

A

will link to primary key in another table (so data is only stored once)

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

whatre the advantages and disadvantages of using a flat file database

A

adv-ideal for small databases with little duplicated data,easier to create
dis-takes more internal memory and storage,data may be duplicated so there can be entry errors

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

whatre the advantages and disadvantages of using a relational database

A

adv-less memory and space,data isnt duplicated so fewer entry errors,difficul tto create

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

what are the 3 diff data types

A

-alpha numeric (text and numbers,short or long text)
-numeric (integer,decimal,currency,date and time)
-boolean (store data in 0 or -1 to represent yes and no or true or false

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

why are forms made

A

to collect data to add to a database

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

whatre the features of a good form

A

-title
-instructions on how to complete form
-clear questions (closed where possible)
-boxes for answers
-appropriate sizes of answer box
-small fields grouped to categories
-no crodwd fields
-fills page
-no large areas of space
-collect only relavent data

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

whatre queries used for

A

to find data/filter through data in a database

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

whatre the 3 query crieias

A

and (both must be ther)
or (either 1)
wildcards (like “x”)

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

whatre the different operators

A

> greater than

<less than
= equal to

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

when are wildcards used

A
  • when you want to find a certain word within a phrase
    like “x” if you wanted words staring with x
    like “
    x” if you want words ending with x
    like “x” if you want words containing x
16
Q

how do you create a calculated field

A

go to query and creata a new one
using
-namecalculatedfield:[exisingfield]operator[exisingfield]
ex- tax:[price]*2 or profit:[sales]-[cost]

16
Q

explain why ranges should be changed to cell refrences (3)

A

Used if the range of cells is to be used many times
Easier to remember a name rather than cell references
Only has to type in the name rather than the cell references
Less chance of errors when entering the range
If the range of cells moves/copied the name still refers to the cells

16
Q

explain what IF(A2<>”“,VLOOKUP(A2,E3:F6,2), “”) does (5)

A

If the contents of A2 are not empty – 1 mark
Otherwise display a blank cell – 1 mark
Three from:
Looks up/searches the value in A2
Looks up in the range E3:F6
Retrieves/displays the corresponding value
From the second column of the range
Displays the value in A3

16
Q

describe the steps needed to create a relational database

A

Open database package
Select database tools
The teacher’s file and subject file would be imported to separate tables
A primary key is identified/set
The foreign key is identified in the subject table
Click/create/select relationships
The primary key is dragged to the foreign key
Save the database