Raw facts, figures, symbols with no meaning.
Processed and meaningful form of data.
Database Fundamentals • Data Models • Relational Algebra & Calculus
Compiled & Formatted by Ankush Raj
Raw facts, figures, symbols with no meaning.
Processed and meaningful form of data.
Types: Logical Data Independence, Physical Data Independence
Schema – Definition: Blueprint of the database (structure)
Instance – Definition: Actual data stored at a particular moment
Entity: Real-world object (Student, Teacher)
Attribute: Characteristic of entity (Roll, Name)
Relationship: Association between entities (Teacher teaches Student)
| Model | Structure | Relationship |
|---|---|---|
| Relational | Table | All types |
| Hierarchical | Tree | 1:N |
| Network | Graph | M:N |
1. Selection (σ) - Selects rows
2. Projection (π) - Selects columns
3. Union (∪) - Combines two relations
4. Set Difference (–) - Returns tuples in one but not other
5. Cartesian Product (×) - Combines attributes of two relations
6. Rename (ρ) - Renames relation/attributes
| Basis | Algebra | Calculus |
|---|---|---|
| Type | Procedural | Non-procedural |
| Focus | How data fetched | What data needed |
| Basis | SQL Engine | SQL Theory |