Siksha Sarovar

Siksha Sarovar (sikshasarovar.com) is a free educational web application that helps students in India learn programming and prepare for academic and competitive exams. The platform offers structured coding courses (C, C++, Python, Java, HTML, CSS, PHP, Power BI, AI, Machine Learning, Data Science), complete university curriculum notes for BCA/MCA students with previous year question papers, Class 10 and Class 12 CBSE/HBSE school notes, and dedicated preparation material for SSC, UPSC, Banking, Railway and other government exams. Browsing the site is completely free and requires no account. Users may optionally sign in with Google solely to save their learning progress, quiz scores and personal preferences across devices.

Privacy Policy | Terms of Service | Contact Siksha Sarovar | About Siksha Sarovar

v4.0.9 · PWA
Siksha Sarovar logo
Siksha Sarovar
Your Learning Universe

Siksha Sarovar is a free e-learning platform for coding courses, BCA university notes and competitive exam preparation. Optional Google sign-in saves your learning progress across devices.

Initializing knowledge base…
Compiling modules 0%

Unit 1: Data Models, Schemas, and Instances

Lesson 4 of 28 in the free Database Management Systems notes on Siksha Sarovar, written by Rohit Jangra.

4.1 Data Models

A Data Model is an abstract model that organizes elements of data and standardizes how they relate to one another and to properties of the real-world entities.

Classification of Data Models:

  1. Conceptual Data Models (High-level): Use concepts like entities, attributes, and relationships. (e.g., ER Model).
  2. Representational Data Models (Implementation): Used by most commercial DBMSs. (e.g., Relational, Network, and Hierarchical models).
  3. Physical Data Models (Low-level): Describe how data is stored as files, including record formats, orderings, and access paths.

4.2 Database Schema vs. Database Instance

It is crucial to distinguish between the "description" of the database and the "data" itself.

ConceptDatabase Schema (Intension)Database Instance (Extension)
DefinitionThe overall design/structure of the database.The data stored in the database at a specific moment.
Frequency of ChangeChanges very rarely.Changes constantly (with every insert/delete).
AnalogyThe blueprint of a house.The people living in the house today.
Programming EquivalentVariable declarations (e.g., int x).The current value (e.g., x = 10).

4.3 Data Independence

Data independence is the ability to modify a schema definition in one level without affecting a schema definition in the next higher level.

  1. Logical Data Independence:
  • The ability to change the conceptual schema without changing the external schemas or application programs.
  • Example: Adding a new attribute to a table shouldn't break a report that doesn't use that attribute.
  1. Physical Data Independence:
  • The ability to change the internal schema without changing the conceptual schema.
  • Example: Moving the database from one hard drive to another or changing from B-tree to Hashing for an index.