
Data Integrity ensures that the data stored in a database is accurate, consistent, and reliable throughout its lifecycle.
Data Integrity ensures that the data stored in a database is accurate, consistent, and reliable throughout its lifecycle.
| Type | Description | Example |
|---|---|---|
| Entity Integrity | Ensures every table row has a unique, non-null primary key. | Primary key constraint enforcement. |
| Referential Integrity | Ensures relationships between tables remain consistent. | Foreign key constraints prevent orphan records. |
| Domain Integrity | Ensures data values fall within valid ranges or sets. | Age column must be between 0 and 120. |
| User-Defined Integrity | Custom business rules specific to application logic. | Employee salary must not be less than minimum wage. |
Database Security protects the database from unauthorized access, misuse, and threats, ensuring confidentiality, integrity, and availability (the CIA triad).
| Aspect | Description |
|---|---|
| Authentication | Verifies the identity of users or systems. |
| Authorization | Grants or denies permissions to users. |
| Auditing | Tracks user actions for accountability. |
| Encryption | Protects data privacy by converting data into unreadable format without a key. |
| Backup and Recovery | Ensures data can be restored after loss or corruption. |
GRANT SELECT, INSERT ON Employees TO user_john;
REVOKE UPDATE ON Employees FROM user_john;
| Topic | Purpose |
|---|---|
| Data Integrity | Accuracy and consistency of data |
| Integrity Constraints | Enforce business and domain rules |
| Authentication | Verify user identity |
| Authorization | Control user access |
| Auditing | Track user actions |
| Encryption | Protect data confidentiality |
Open this section to view and download past papers
Click on Show Past Papers to load available exam papers.