Public Service Commission (PSC)2082 BSQuestion 8 of 9
What is a Database Management System (DBMS)? Explain the components and architecture of a DBMS. Write SQL queries for the following:
15 marks
Question source
- Exam year
- 2082 BS / 2025 AD
- Level
- Level 4
- Paper
- Paper II – Subjective
- Section
- Section C: Practical / Applied Questions (2 × 15 = 30 marks)
Model answer
A Database Management System (DBMS) is software that enables users to create, manage, and manipulate databases. It provides an interface between the database and its end users or application programs.
Components of DBMS:
- Database Engine — Core service for storing, processing, and securing data
- Database Schema — Defines the logical structure (tables, relationships, constraints)
- Query Processor — Interprets and executes database queries (SQL)
- Transaction Management — Ensures ACID properties (Atomicity, Consistency, Isolation, Durability)
- Storage Manager — Manages data storage on physical media
SQL Queries:
a) Create table:
CREATE TABLE Employee (
EmpID INT PRIMARY KEY,
Name VARCHAR(100),
Department VARCHAR(50),
Salary DECIMAL(10, 2)
);
b) Insert record:
INSERT INTO Employee (EmpID, Name, Department, Salary)
VALUES (101, 'Ram Sharma', 'IT', 45000.00);
c) Select IT employees:
SELECT * FROM Employee
WHERE Department = 'IT';
d) Update salary:
UPDATE Employee
SET Salary = 50000.00
WHERE EmpID = 101;
e) Delete record:
DELETE FROM Employee
WHERE EmpID = 105;