Relational Databases and SQL Flashcards

1
Q

What is a database?

A

A structured, persistent collection of data

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

What are the 2 types of databases?

A

Flat file database
Relational database

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

What is a flat file database?

A

A single table database - all information stored in 1 table
- very inefficient
- difficult to query as data is all in one table
- used for smaller/ trivial data sets
- data is often duplicated
- data inconsistency

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

What is a relational database?

A

A database with more than one table which are connected together.
- eliminates data consistency and data redundancy

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

What are the 5 database concepts?

A

Field
Record
Table
Primary key
Foreign key

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

What is a field?

A

A name which refers to a single type of data from a database table

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

What is a table?

A

A complete set of related records on the same topic/subject

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

What is a record?

A

A set of related fields on a single entity within a database table

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

What is a primary key?

A

A field in a table which is used to identify any record within the table

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