Stepping back from writing SQL to understand the software (a Database Management System) that actually manages the database underneath your queries.
Data integrity management โ the DBMS helps ensure data quality across several dimensions:
| Dimension | Meaning |
|---|---|
| Accuracy | The data correctly reflects reality |
| Correctness | The data conforms to the rules/constraints defined for it |
| Currency | The data is up to date |
| Completeness | No required data is missing |
| Relevance | The data stored is actually needed/useful |
Security functions of a DBMS:
Backup, recovery and management โ a DBMS typically provides tools to back up data regularly and recover it after a failure or corruption event.
๐ก Exam Tip
SQL injection is a favourite short-answer question: know that it happens because user input is inserted directly into a SQL command without proper validation/sanitisation, and that the defence is validating/escaping user input before using it in a query.