T9: Databases Flashcards

1
Q

What is a database?

A

A way of holding data in an organised way so that searching for data items meeting certain criteria is easy

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

In a table, what is the name given to a row

A

Records
Each record will have identical record structures

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

In a table, what is the name given to a column?

A

Fields
Each field has a defined field type, e.g. text, Boolean, numeric

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

What is the format of an SQL statement?

A

SELECT - List the filed(s) you want to display

FROM - List the table the data will come from

WHERE - List search criteria here

ORDER BY - Sorts data in ASC or DESC order

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

Write an SQL statement for finding the total number of female members in the ClubMember table

A

SELECT COUNT
FROM ClubMember
WHERE Gender = “F”

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

Write an SQL statement for finding the total number of eruptions of volcanoes in Italy recorded in the Volcano table

A

SELECT SUM(TimesErupted)
FROM Volcano
WHERE County = “Italy”

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