Databases & SQL Flashcards

1
Q

Define the term ‘Database’.

A

Database - A computerised system that makes it easy to search for, select and store information. Often used in places such as banks, schools, businesses, etc.

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

Define ‘field’ and ‘record’.

A

Field - Categories for each piece of data in a table (Columns)

Records - Data for an object, person or place. (Rows)

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

Define and Compare a ‘Primary Key’ and ‘Foreign key’.

A

A primary key is a unique identifier for records specific to that table whereas a foreign key is that but for another table that has been linked via it (linking field in the foreign table formed when making a relationship between them - becomes the primary key of the new table, by default).

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

Describe a ‘flat-file Database’ and its problems.

A

Flat-file Database - Made up of only 1 table for everything which leads to problems such as data redundancy and data inconsistency.

Data Redundancy - Repeated data in a table, making the file unnecessarily large.

Data Inconsistency - If data is stored multiple times however it isn’t always the same, meaning the chance of errors occurring and data being inconsistent (hence the name) is higher

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

What is a ‘Relational Database’?

A

Relational Database - Made up of more than 1 table, eliminating the problems of data redundancy/inconsistency; recognises relations between different tables

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

What does SQL stand for?

A

Structured Query Language - Used to communicate/edited with databases

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