databases Flashcards

1
Q

What is a database?

A

A way of organising data/information so that it can be accessed easily.

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

Why are databases useful?

A

They store large amounts of data, hold data in an organised way, make it faster to carry out searches, are freely available, and interact with different systems.

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

What is a Flat File database?

A

The simplest database, consisting of a single table.

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

What are attributes in a database?

A

Column names and the data they contain. Data is called fields.

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

What are records in a database?

A

Refers to one entry (column) in the table, also known as an instance.

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

What are the data types in a database?

A

Varchar, Number, Date.

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

What is Varchar?

A

Variable Character, like a string in Python, a series of numbers, letters and other characters.

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

What is a Number data type?

A

A number that can be used in calculations.

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

What is a Date data type?

A

Typically date/month/year, but can also be an integer value based on the number of days since 31/12/1899.

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

What is CSV?

A

Comma Separated Value, a file type used to store flat file databases.

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

What are Relational Databases?

A

Databases that store and provide access to data points that are related to one another.

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

What are the problems with single data tables?

A

Duplicate data, wasted time replacing duplicate data, wasted storage space, and hard to extract specific data.

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

What is a Primary Key?

A

A unique identifier generated to reference records.

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

What is a Foreign Key?

A

An attribute that is created to link different tables.

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

What is an ERD?

A

Entity Relationship Diagram, used to visualise the relationship between entities (tables).

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