← RGPV CS-502 DBMS December 2020 solved question paper
← RGPV CS-502-CBGS DBMS June 2020 solved question paper
CS-502 (CBGS) | December 2020 | Q2(b) | 7 marks
Question (restated): Compare physical and logical levels of database abstraction.
Answer
Data abstraction hides unnecessary implementation details. The physical level describes how data is stored, including pages, records, indexes, compression and file organization. The logical level describes what data is stored and how entities are related, including schemas, attributes, constraints and relationships. The external level presents selected views to users.
Consider Student(RollNo, Name, Dept). At the logical level RollNo is a primary key and Dept may reference Department. At the physical level records may occupy disk pages and a B+ tree may index RollNo. A student portal can query the logical table without knowing its page addresses.
Physical data independence permits changing storage structures without changing the logical schema: adding an index is a common example. Logical data independence permits changing the logical schema while preserving external views and applications where possible. For example, a compatibility view may preserve a former table interface after decomposition. Logical independence is generally harder to achieve.
The DBA and storage engine are concerned with physical design and performance; database designers and developers work primarily with logical design. The query optimizer maps logical operations to physical execution plans. Separation improves maintainability and allows storage technology to evolve without rewriting every application.

Further reading: Silberschatz, Korth and Sudarshan, Database System Concepts.
June 2020 – Q6(b)
Question: Differentiate physical level and logical level of data abstraction.
Data abstraction hides unnecessary details of database implementation. The physical level describes how records are stored, whereas the logical level describes what data is stored and how it is related. A third, external level presents selected information to particular users.
At the physical level, the DBMS manages disk pages, record layouts, indexes, compression and access paths. A database administrator may choose a B+ tree index on RollNo to improve search speed. At the logical level, the database designer defines Student(RollNo, Name, Marks), its primary key and constraints. SQL queries refer to logical attributes rather than disk addresses.
Physical data independence permits changes in physical storage without modifying the logical schema. Logical data independence permits compatible conceptual changes without modifying existing external views. These mappings allow storage optimization and application maintenance to proceed separately.
| Aspect | Physical | Logical |
|---|---|---|
| Concern | How data is stored | What data and relationships exist |
| Elements | Pages, indexes, files | Relations, attributes, constraints |
| Example | B+ tree on RollNo | Student primary key RollNo |
Discussion
Ask a question, share your thoughts or report an error.
Sign in to participate in the discussion.
Join the discussion