1.3.2 Databases Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

1.3.2 A)
What is a database

A

organised collection of data. That allows for easy adding, modifying, deletion and searching of the data.

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

1.3.2 A)
Inside a database a table is also known as
Inside a table a row is also known as
Inside a table a column is also known as

A

1) an entity or file
2) a row or tuple
3) a field or attribute

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

1.3.2 A)
What is the advantages and disadvantages of a flat file

A

A) simple and quick to set up, do not need a specialised to maintain, good for storing small amount of data
D) When lots of data inputted likely to have repeating data which is inefficient as it takes up unnecessary space, it becomes slow to query and is difficult to maintain.

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

1.3.2 A)
What is a flat file

A

single file, with comma separated values (csv)

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

1.3.2 A)
What is a relational data base

A

Splits information into multiple tables. links tables with one another using relationships for 1:M , M:M , 1:1.

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

1.3.2 A)
What is the advantages and disadvantages of a relational data base

A

A) structured and efficient way to store and retrieve data , reduce redundancy.
D) Expert needed , costs , performance

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

1.3.2 A)
What is a primary key

A

A field that has a unique value / a
unique identifier (1) for every record in
that table (1)

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

1.3.2 A)
What is a foreign key

A

attribute that links to tables together, foreign key has to be a primary key in another table

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

1.3.2 A)
What is a composite key

A

candidate key that consists of two or more attributes that together create a unique identifier. values of comp key must be diff across all records

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

1.3.2 A)
What is a secondary key

A

Can also specify one or more secondary keys to be indexed. Helped files be searched quickly and easily (instead of typing a unique id something easy to remember like a last name )

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

1.3.2 A)
What is indexing

A

Held for primary keys so it can be easily located quickly. so that sequential searching is not needed.

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

1.3.2 A)
What is normalisation ? ( in terms of data bases )

A

Process of coming up with the best possible layout for relational databases.

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

1.3.2 A)
Properties of normalisation in terms of databases

A

no redundancy
consistent data in linked tables
easy to add / remove records

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

1.3.2 C)
What is first normal form

A
  • No Repeating fields/data
  • Data is atomic
  • Has a primary Key
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

1.3.2 C)
What is second normal form

A
  • Is in First Normal Form
  • Every field is dependent on the
    primary key
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

1.3.2 C)
What is third normal form

A

Has a transitive relationship/ A non-key field depends on another non-key field