Database
a collection of organized data stored in a structured and logical way which can be retrieved using queries
Primary key
a field where every valued stored is unique
validation
process of examining input so only reasonable data is accepted
data types in SQL?
Layout of SQL
SELECT… <fields> - SUM() & COUNT()
FROM <tablename>
WHERE <condition>
ORDER BY... ASCENDING/DESCENDING</condition></tablename></fields>
what does * do in SQL
all columns or all rows or replaces any character
sum() and count() function and when to use
sum() - returns total sum of a numeric column and only in numeric fields
count() - returns a single value and counts (for any field)