3.2.1 Databases 1 Flashcards

1
Q

what is a database

A

organised collection of data

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

databases consist of…

A

entities-tables

relationships between entities- created using key fields

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

two types of database

A

flat file

relational

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

flat file databases

A

only consist of one file/ table
run onto problems when try to store data about related items eg contacts phone numbers addresses

does not have integrity- cannot reply on information

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

relational databases

A

store data about separate entities (contacts and companies) in different tables.

more than one table joined by relationships using primary and foreign keys

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

advantages of a relational database

A

data redundancy reduced- data duplication- cut down on data items.

data inconsistency reduced- inconsistency by product of redundancy.

data integrity- inconsistency reduced- more integrity- integrity result of validation.

access rights-relational db systems allow for different users to be given different rights to data operations. SELECT INSERT DELETE ALTER CREATE

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

an entity

A

object about which data is stored. each instance of an entity is a record- information about one specific employee or product etc.

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

attributes

A

describe each individual data item within the entity

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

primary key

A

uniquely identifies each instance of an entity

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

composite key

A

uniquely identifies a record using two or more attributes which may be primary keys in other entities.

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

foreign key

A

a non key field in one table which is the key field in another table. used to create the relationship between the entities.

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

relationship

A

a link between two entities. cardinality details the number of occurrences that can be involved in a relationship.
1:1 1 record in 1 table relates to only 1 in another- teachers to rooms in a primary school.
1:M 1 order contains many items.
M:N many pupils study many subjects. - Broken down to 1:M in dbases.

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

referential integrity

A

ensures that the data in one table does not contradict the data in another table.
every foreign key value which exists in a table must have a matching primary key value in a related table.
used to manage the relationships between primary and foreign keys.

LOOK AT NOTES FOR INSTRUCTION.

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