Databases Flashcards
What is a database?
A way of holding data in an organised way so that searching for data items meeting certain criteria is easy
In a table, what is the name given to a row
Records
Each record will have identical record structures
In a table, what is the name given to a column?
Fields
Each field has a defined field type, e.g. text, Boolean, numeric
What is the format of an SQL statement?
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
Write an SQL statement for finding the total number of female members in the ClubMember table
SELECT COUNT
FROM ClubMember
WHERE Gender = “F”
Write an SQL statement for finding the total number of eruptions of volcanoes in Italy recorded in the Volcano table
SELECT SUM(TimesErupted)
FROM Volcano
WHERE County = “Italy”