Database is a organised collection of information that is stored so it can be easily accessed, managed and updated. A database stores related data items together in a structured form to support efficient retrieval, insertion, update and deletion operations.
Database Management System (DBMS) is a software package designed to define, manipulate, retrieve and manage data in a database. A DBMS enforces rules for data integrity, security and concurrency, and provides interfaces for users and applications to interact with the data. Fourth‐generation query languages such as SQL (Structured Query Language) are commonly used with DBMSs to express queries and data manipulation commands.
Core services provided by a DBMS include:
Real‐time applications that commonly use DBMSs include:
Data is the primary component of a database. It includes:
Hardware refers to the physical devices that store and process data. Typical components include storage devices (hard disks, solid‐state drives, optical media), servers, network interfaces, and input/output devices required for database operations.
Software comprises the DBMS itself and any tools used to manage, query and manipulate the data. The DBMS mediates between users/applications and the stored data. Examples of widely used DBMS products include relational systems such as MySQL, PostgreSQL and Oracle Database; these provide query engines, transaction managers and utilities for administration.
Users are the people and programs that interact with the database. Typical user categories are:
Schema is the overall logical design or structure of the database described in a data definition language. Instance is the data stored in the database at a particular moment (the current contents).
Data models describe how data is organised. The most common model for introductory study is the relational model, where data is organised into tables (relations) with rows (tuples) and columns (attributes). Key concepts in the relational model include:
The physical level describes how data is actually stored on storage media (for example, file structures, indexes, pages). It deals with record placement, storage formats and access paths.
The logical level describes what data is stored in the database and the relationships among those data items. It defines the logical schema seen by DBAs and designers. Example of a logical description for a customer record:
| Attribute | Type |
| cust_id | int |
| cust_name | string / varchar |
| cust_city | string / varchar |
The view level is the highest level of abstraction. Views present subsets of the database for particular users or applications and hide irrelevant details. Views can also enforce security by hiding sensitive attributes (for example, employee salary).
A transaction is a logical unit of work that may consist of multiple read and write operations. DBMSs ensure transactions follow the ACID properties:
| 1. What is a database? | ![]() |
| 2. What are the advantages of using a database? | ![]() |
| 3. What is a relational database? | ![]() |
| 4. What is the role of a database management system (DBMS)? | ![]() |
| 5. What is SQL and its importance in databases? | ![]() |