Flat-file database
Also known as a single-table databse, made up of a single table. Structured, persistent collection of data.
Fields
The columns of a database; each field has its own defined data type. Contains particular piece of information/property about an entity.
Record
Rows in a database (exluding name of fields/column headings). Group of fields related to a particular entity.
Entity
Anything about which data is collected & stored.
5 data types in databases
Real - data that has a decimal point
Character - single letter/text value
Integer - whole number
Text/alphanumeric - string of characters
Boolean - True or False
Date/Time - values that represent data and/or time in specified format
Primary key
A field that uniquely indentifies a single record from all the others in a database table. Never repeat.
SQL
Strutured querry language; standard language for manipulating database
State 4 different SQL selection statements + meaning
SELECT - picks field(s) you want to view from database.
FROM - shows which database/table information is taken from
WHERE - specifies condition for retrieved data, e.g. parameters for another field. Can use equal to, less than, etc. and boolean operations.
* - selects all fields in database table
State 3 different SQL sorting statements & arithmetic operations + meaning
ORDER BY [field] [keyword] - sorts the fields/data retrieved from a table in ascending/descending order. Keyword will be ASC or DESC
Sum - sums all numeric values in field. E.g. SELECT Sum(Field name)
Count - counts number of records (that meet specific criteria). E.g. SELECT Count(Field name)
How should SQL statements be ended?
With colon ; to mark end of statement