99

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).

DBMSRDBMS
Data may be stored as files / documentsData stored in tables (rows and columns)
Relationships not enforcedRelationships through keys (foreign keys)
May not support ACID fullySupports ACID transactions and normalization
File system, XML DBMySQL, 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

  1. Advantages of DBMS over a file system?
    Less redundancy, consistency, concurrent access, security, backup and recovery, and easy querying with SQL.