A database is an organised collection of data. A DBMS (Database Management System) is software to store, retrieve and manage it (MySQL, PostgreSQL, Oracle, SQL Server, MongoDB).
| DBMS | RDBMS |
|---|---|
| Data may be stored as files / documents | Data stored in tables (rows and columns) |
| Relationships not enforced | Relationships through keys (foreign keys) |
| May not support ACID fully | Supports ACID transactions and normalization |
| File system, XML DB | MySQL, PostgreSQL, Oracle |
- Table (relation), row (tuple / record), column (attribute / field).
- Degree = number of columns; cardinality = number of rows.
- Schema = structure of the database; instance = data at a moment.
Q & A
-
Advantages of DBMS over a file system?Less redundancy, consistency, concurrent access, security, backup and recovery, and easy querying with SQL.