Relational databases and structured query language Flashcards

1
Q

What is a database?

A

A method in computing of storing a large amount of organised data

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

What is a table?

A

In a database, data is organised in to tables of data

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

What is a field?

A

Within a table of data, a column is known as a field

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

What is a record?

A

Within a table of data, a row is known as a record and contains fields of data that refer to that same data record

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

What is a primary key?

A

A unique identifier given to each record (row) in a data table

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

What is a foreign key?

A

A field in a table that corresponds to a primary key in a different data table

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

What is a flat file?

A

A database which contains a single table of data

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

What does data redundancy mean?

A

The duplication of data. This is always to be avoided in a database

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

What does a relational database contain?

A

More than one table, and these tables are linked together using relationships

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

What is SQL?

A

Structured Query Language which is used to communicate with a
database. SQL is used to manipulate databases and retrieve records

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

What is SELECT query used for?

A

Retrieving records from a data table

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

What is UPDATE query used for?

A

Manipulating records that already exist in a data table and changing the values

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

What is INSERT query used for?

A

Adding additional records in to a data table

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

What is the DELETE query used for?

A

Removing records from a data table

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