(10) Fundamentals of Databases Flashcards

1
Q

What is normalisation?

A

The process of ensuring that a database is designed in its most efficient form

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

What is 0NF?

A

A table with no normalisation, all data and fields in one table.

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

What is 1st Normal form?

A

Doesn’t contain repeating attributes and all values cant be broken into separate parts

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

What is 2nd Normal form?

A

Same as 1st but contains no partial key dependency

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

What is 3rd Normal form?

A

Same as 2nd Normal form but it contains no non key dependency

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

What is a database?

A

A collection of data in an organised and logical way

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

What are the 4 types of relationships in relational databases?

A

One to One
One to Many
Many to One
Many to Many

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

What is a relational database?

A

A collection of tables in which relationships are modelled by shared attributes

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

What is are attributes?

A

Describing characteristics of an object in a database

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

What is a primary key?

A

An attribute that can uniquely identify a row

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

What is a composite primary key?

A

An attribute that can be used to uniquely identify every record within a table

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

What is a foreign key?

A

An attribute in a table that is a primary key in another table and is used to link tables

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

Why are databases normalised?

A

To allow the database to be as efficient as possible by reducing the amount of redundancies (repeated data)

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

What is SQL?

A

A text based querying system. Used by a lot of relational databases

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

What are the two parts of SQL and what are they?

A

DDL - Used to create database tables

DML - Used to retrieve, Update, Insert and delete data in a database

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

What is an entity?

A

An object (person/event) that data is stored for

17
Q

What is the concept of a relational database?

A

A method of creating a database using tables of related data, with relationships between the tables