Data Model, DBMS Architecture and Components: A Worked Query from Schema to Storage
Follow one university enrolment database from ER design to relations, views, heap pages and a B+ tree. Then trace a SQL query through the DBMS components.
KnowledgeGate Team
Exam prep & CS education

Textbooks often place data models, the three-schema architecture, data independence and DBMS components beside one another. The terms can look interchangeable, but each answers a different question. One university-enrolment database connects an ER idea to relations, external views, physical pages and the result of one SQL query. The same students, courses and enrolments appear in the ER, relational, view and storage examples.
Data model in DBMS: what it describes and what it does not
A data model is a collection of concepts for expressing data structure, relationships, constraints and permitted operations. The relational model supplies relations, tuples, keys and constraints. STUDENT(StudentID, Name, Dept) is a schema built with that model, not the model itself.
A database is the stored data plus its metadata. A DBMS is the software that defines, queries, protects and recovers that database. Keys and Integrity Constraints in DBMS derives candidate keys and tests update legality. With those identifiers fixed, the architecture problem is to map the schema, locate pages, and assign each runtime manager.
The case has students S101 / Asha Rao / CSE and S205 / Ravi Kumar / ECE; courses CS301 / DBMS / 4 credits and CS305 / Operating Systems / 4 credits; and three enrolments.
Conceptual, logical and physical data models with one enrolment case
At the conceptual level, STUDENT and COURSE are entities connected by an M:N ENROLLED_IN relationship carrying Semester and Grade. One student can take many courses, and one course can have many students. Associative entity ENROLMENT resolves the relationship.
At the logical relational level, the mapping produces STUDENT(StudentID PK, Name, Dept), COURSE(CourseID PK, Title, Credits CHECK Credits > 0) and ENROLMENT(StudentID FK, CourseID FK, Semester, Grade, PK(StudentID, CourseID, Semester)). This is the key move in ER model to relational mapping.
For this small worked instance, the physical level stores all three enrolments on one 4 KB heap page E1, both students on heap page S1, and a single root-leaf B+ tree page L1 on CourseID. The page size and layout are choices for this example, not rules followed by every DBMS.

Schema, instance, degree and cardinality: calculate them from the tables
Relation definitions and constraints form the schema. Rows present at one time form the instance or database state. Our ENROLMENT instance is:
StudentID | CourseID | Semester | Grade |
|---|---|---|---|
S101 | CS301 | 2026-Sem1 | A |
S101 | CS305 | 2026-Sem1 | B+ |
S205 | CS301 | 2026-Sem1 | A- |
Degree counts attributes; cardinality counts tuples. STUDENT has three attributes and two tuples, so its degree is 3 and cardinality is 2. COURSE also has degree 3 and cardinality 2. ENROLMENT has four attributes and three tuples, so its degree is 4 and cardinality is 3. Selecting CourseID = 'CS301' keeps the first and third tuples, giving cardinality 2, for S101 and S205.
Both student and course foreign keys resolve to stored rows. Both credit values are 4, so Credits > 0 holds. The three composite keys are distinct, although S101 and CS301 repeat separately. Inserting (S999, CS301, 2026-Sem1, B) would fail referential integrity because S999 is absent from STUDENT.
Three-schema architecture and the two kinds of data independence
At the external level, RegistrarView(StudentID, CourseID, Grade) exposes (S101, CS301, A), (S101, CS305, B+) and (S205, CS301, A-). Faculty_CS301(StudentID, Name, Grade) exposes only (S101, Asha Rao, A) and (S205, Ravi Kumar, A-). The conceptual schema contains the three relations and their constraints. The internal schema contains pages S1 and E1, index page L1, record slots and the log.
External-conceptual mappings derive views from relations. The conceptual-internal mapping locates relations in files and indexes. Replacing an ENROLMENT heap scan with the stated B+ tree, without changing a relation, demonstrates physical data independence.
Logical data independence concerns the conceptual structure seen through stable external views. Suppose STUDENT.Name becomes FirstName and LastName, storing Asha/Rao and Ravi/Kumar. An external view can reconstruct Name as FirstName || ' ' || LastName, so the faculty view still returns Asha Rao and Ravi Kumar.

DBMS components: trace one SQL query through the system
Run this query:
SELECT s.Name
FROM STUDENT AS s
JOIN ENROLMENT AS e ON e.StudentID = s.StudentID
WHERE e.CourseID = 'CS301';It returns two rows, Asha Rao and Ravi Kumar. Their order is not guaranteed unless the query adds an ORDER BY.
The parser and semantic checker use the catalogue to resolve names and types. The optimiser chooses B+ tree L1. The executor follows CS301 -> [E1:slot1, E1:slot3], obtains S101 and S205, joins them with the student rows on S1, and projects both names.
With a cold buffer and this toy layout, the plan reads L1, E1 and S1: one index page plus two data pages equals three page reads after metadata is available. This count excludes catalogue and logging I/O. The file/index manager interprets pages and slots; the buffer manager fetches them. Authorisation and integrity checks protect access and constraints. Transaction and concurrency management supplies a consistent read. Recovery and logging protect update durability, although this SELECT changes no row. The data dictionary stores schema and index metadata. A warm cache or different plan can change the count.
Data-model and architecture traps that objective questions exploit
Confused pair | Correct boundary | Running-example check |
|---|---|---|
Data model vs schema | A model supplies concepts; a schema applies them | Relational model vs |
Schema vs instance | Definition vs current rows |
|
Three-schema vs three-tier architecture | Database abstraction vs application deployment |
|
Logical vs physical independence | Conceptual change vs storage change | Splitting |
Database vs DBMS | Stored data and metadata vs managing software | Rows and catalogue vs query, recovery and protection services |
Optimiser vs buffer manager | Chooses the plan vs fetches its pages | Optimiser selects |
Adding the third enrolment changes cardinality, not degree. Also, “logical level” in data-model classification and “conceptual level” in ANSI/SPARC architecture are related abstractions, but answer according to the terminology used in the question.
Data model and DBMS architecture: how exams turn the concepts into questions
Questions repeat four formats: classify data models, identify the schema level visible to a user, identify which mapping supplies each kind of independence, or match the parser, optimiser, buffer manager, recovery manager and catalogue to their jobs.
Use this four-item self-check:
COURSEdegree and cardinality? 3 and 2.Level of
Faculty_CS301? External.Heap scan replaced by
L1? Physical data independence.Who performs the three stated page reads after plan selection? The buffer manager, after the optimiser chooses the plan.
KnowledgeGate has over 10 questions on Data Model, Architecture & Components in its practice bank. Use GATE CS exam preparation for broader subject navigation, then apply the distinctions under time pressure with the GATE Test Series.
Data model, architecture and components: the short version
Keep a four-step mental model. The data model supplies the vocabulary. A schema applies it. Three-schema mappings isolate views and storage. DBMS components execute and protect operations. The result Asha Rao, Ravi Kumar proves these ideas connect from page to query output.
If you are building a complete subject plan, use GATE Guidance by Sanchit Sir. If you are revising only this topic, first redraw both diagrams and recompute the example unaided.
Keep learning
DBMS Data Models, Architecture and Components MCQs: 12 Solved Questions
Test whether you can separate data models, abstraction levels, catalogs, schemas and metadata. These 12 MCQs include concise explanations and a diagnostic review plan.
Data Warehousing and Data Mining in DBMS: Star Schema, OLAP Operations and Apriori with Worked Examples
Move from warehouse vocabulary to hand-worked answers. Build a star schema, operate on a data cube, run Apriori, and follow two k-means iterations.
Relational Model and Functional Dependencies in DBMS: Keys, Closure and Minimal Cover
Build keys, closures and a minimal cover from one seven-attribute enrolment relation. Then use the same dependencies to explain redundancy and decomposition.
DBMS Interview Questions: Keys, Normalisation and Transactions Through One Worked Schema
Build defensible DBMS interview answers by tracing keys, normal forms, ACID and isolation through one university-enrolment database.





