←Back to Subject
Notes
Notes
Study material and explanations
Diagrams
Diagrams
Visualize concepts easily
Mnemonics
Mnemonics
Tricks to remember faster
One Night Prep
One Night Prep
Short and focused revision
Revision
Revision
Quick summary and key points
Important Questions
Important Questions
Practice most relevant questions
Diagrams

Diagrams

Visual representations for Unit 1

Comparison: Traditional File System vs. Database Management System

Comparison: Traditional File System vs. Database Management System
Flat File Processing System
Each application has its own private files.
High redundancy, no centralized security, high inconsistency.
Database Management System (DBMS)
Centralized database shared by all applications.
Shared records, controlled access and transaction support.
Explanation
  • Separate application files can carry conflicting copies of a student's address.
  • A shared database lets authorised applications refer to one managed record.
Detailed Notes →Quick Revision →

The Five Core Components of DBMS

The Five Core Components of DBMS
1. Hardware
CPU, RAM, Hard Disks, Servers
➔ 2. Software
DBMS Engine, OS, Network
➔ 3. Data & Metadata
User records & Data Dictionary
➔ 4. Procedures
Rules, Logs, Backups
➔ 5. Users
End Users, Devs, DBA
Explanation
  • Hardware and software handle the stored records and the metadata describing them.
  • People follow procedures to enter, protect, back up and recover the data.
Detailed Notes →Quick Revision →

ANSI/SPARC 3-Level Database Architecture

ANSI/SPARC 3-Level Database Architecture
1. External / View Level
User Views (View 1, View 2, View 3)
➔ External-to-Conceptual Mapping ➔
2. Conceptual / Logical Level
All Entities, Attributes, Relationships & Constraints
➔ Conceptual-to-Internal Mapping ➔
3. Internal / Physical Level
Data files, Disk Blocks, Indexes & Compression on Disk
Explanation
  • External views show what particular users need and the conceptual level describes the whole database.
  • The internal level describes how the data is stored.
Detailed Notes →Quick Revision →

The Two Levels of Data Independence

The Two Levels of Data Independence
1. Physical Data Independence
Ability to modify the internal physical schema without altering the conceptual schema or application code.
2. Logical Data Independence
Ability to modify the conceptual schema without altering existing external views or user applications.
Explanation
  • Physical independence lets storage change while the logical structure stays usable.
  • Logical independence protects external views against suitable changes to the conceptual design.
Detailed Notes →Quick Revision →

The Three Pillars of the ER Model

The Three Pillars of the ER Model
1. Entities
Real-world objects or concepts
(e.g., Student, Course)
➔
2. Attributes
Properties that describe entities
(e.g., Roll_No, Name, Age)
➔
3. Relationships
Associations between entities
(e.g., Student ENROLLS in Course)
Explanation
  • Entities are the things being described and attributes record their properties.
  • Relationships show how occurrences of those entities are associated.
Detailed Notes →Quick Revision →

Strong vs. Weak Entity Comparison

Strong vs. Weak Entity Comparison
Strong Entity (Regular Entity)
Has its own Primary Key.
Can exist independently in the real world.
Drawn with a single rectangle.
Weak Entity Set
Does not have a Primary Key.
Depends on an Owner Entity for its existence.
Has a Partial Key (Discriminator) with dashed underline.
Explanation
  • A strong entity has a key of its own.
  • A weak entity uses its owner's key together with a partial key for identification.
Detailed Notes →Quick Revision →

Inheritance in EER Modeling

Inheritance in EER Modeling
Superclass: VEHICLE
Vehicle_ID, Model, Year, Price
➔ Inherits All Attributes + IS-A ➔
Subclass: CAR
+ Seating_Capacity, Fuel_Type
Explanation
  • A subtype inherits the attributes and relationships of its supertype.
  • It can also add facts that apply only to that subtype.
Detailed Notes →Quick Revision →

Top-Down vs. Bottom-Up Design Paradigms

Top-Down vs. Bottom-Up Design Paradigms
Specialization (Top-Down Process)
Starting with a generic entity and breaking it down into specialized subclasses based on distinguishing features.
Generalization (Bottom-Up Process)
Starting with distinct entities, recognizing their commonalities, and synthesizing them into a higher-level superclass.
Explanation
  • Specialisation starts with one general type and identifies smaller groups.
  • Generalisation starts with several types and extracts what they share.
Detailed Notes →Quick Revision →

Categorization (Union Type) Architecture

Categorization (Union Type) Architecture
Superclass 1: PERSON
Aadhar_No, Name, DOB
Superclass 2: COMPANY
GSTIN, Company_Name, Reg_No
Superclass 3: BANK
IFSC, Branch, RBI_Code
⬇ (Union Symbol: ∪)
Category (Subclass): OWNER
Owner_ID, Registration_Date
Explanation
  • A category takes members from the union of distinct entity types.
  • For example, an owner may be either a person or an organisation.
Detailed Notes →Quick Revision →

Aggregation in Action

Aggregation in Action
[ High-Level Aggregated Entity ]
( EMPLOYEE ── <WORKS_ON> ── PROJECT )
➔ <USES> ➔
MACHINERY
Explanation
  • Aggregation treats an existing relationship and its participants as one unit.
  • That unit can then take part in a further relationship, such as a manager monitoring an assignment.
Detailed Notes →Quick Revision →

Entity and Relationship Mapping: University System

Entity and Relationship Mapping: University System
1. DEPARTMENT
Key: Dept_ID
Attributes: Dept_Name, Building_Location
2. COURSE
Key: Course_ID
Attributes: Title, Credits, Syllabus
3. STUDENT
Key: Roll_No
Attributes: Name, DOB, Phone, Address
4. PROFESSOR
Key: Faculty_ID
Attributes: Name, Designation, Salary
Explanation
  • A student and a course each have an identity.
  • Enrolment connects them and can hold facts such as the semester or grade.
Detailed Notes →Quick Revision →

EER Hierarchy for Banking Accounts

EER Hierarchy for Banking Accounts
Superclass: ACCOUNT
Account_No, Balance, Open_Date
➔ (d, Total) ➔
SAVINGS_ACCOUNT
Interest_Rate
CURRENT_ACCOUNT
Overdraft_Limit
Explanation
  • Shared account details belong to the general account type.
  • Subtypes such as savings accounts keep additional details of their own.
Detailed Notes →Quick Revision →

Hospital relationships

Hospital relationships
Doctor (1) — treats — Patient (many)
Patient (many) — assigned to — Room (at most one per patient)
Explanation
  • Read the labels as the number of related records each side allows.
  • A visit record can model repeat consultations when the hospital needs a more detailed history.
Detailed Notes →Quick Revision →