Tells a database to reject inserted data that doesn't follow certain restrictions.
[Constraint] Rejects any new duplicate value that is already in a selected column.
One PRIMARY KEY per database.
[Constraint] Same as PRIMARY KEY but no limit on how many columns per database.
[Constraint] Sets a column to require a value, otherwise value will not be stored.
[Constraint] Adds placeholder text if no value is submitted
A database that organizes data into one or more tables.
A collection of data organized into rows and columns.
Causes are commands used to manipulate a database.
Calculations performed on multiple rows of a table.
- COUNT()
- SUM()
- MAX() / MIN()
- AVG()
- ROUND()
Returns the number of rows that match the specified criteria.
Returns the number of rows that match the specified criteria.
Returns the sum of all the values in a column.
Returns the largest value in a column.
Returns the smallest value in a column.
Returns the average value in a column.
Rounds a value to the nearest integer.
Can also round to a specific number of decimals if a value is provided.