TheHingineer

  • DBMS


  • DBMS Part-1

  • DBMS Part-2

  • DBMS Part-3

  • DBMS Part-4

  • DBMS Part-5

  •  Difference between Object Oriented, Network and Relational Data Models 


     Pehle Samjho: Data Model kya hota hai?

    Data Model ek design method hota hai jisse hum data ko store karne ka tareeka define karte hain — jaise ki kaunsa data hoga, data ke beech kya relationship hoga, aur usse kaise access karenge.

    Chaliye ab teeno models ko samjhte hain:

    1. Network Data Model

     Kya hota hai?

    Network data model ek graph-like structure use karta hai jisme records (nodes) aur unke relationships (edges) hote hain.

    • Isme ek record ke multiple parents aur children ho sakte hain.

    • Data ko pointers ke through access kiya jata hai.

     Example:

    Agar ek Student multiple Courses mein enrolled hai, aur ek Course mein multiple Students hain — toh yeh ek many-to-many relationship hai.

    Student
      |
      |  
    Enrolls (relationship)
      |  
      |
    Course
     

    Is model mein Enrolls ke zariye Students aur Courses connected hote hain using set and pointer structure.

     Problems:

    • Bohot complex hota hai manage karna

    • Data ko update ya modify karna mushkil

    • Modern systems mein kam use hota hai

    2. Relational Data Model

     Kya hota hai?

    Ye model sabse zyada use hota hai. Isme data ko tables (rows aur columns) ke form mein store kiya jata hai.

    • Tables ke beech connection primary key aur foreign key ke through hota hai.

    • SQL (Structured Query Language) se data easily access hota hai.

     Example:

    Student Table

    StudentIDName
    1Aakash
    2Neha

    Course Table

    CourseIDCourseName
    101DBMS
    102OS

    Enrollment Table

    StudentIDCourseID
    1101
    1102
    2101

    Yahan Enrollment table foreign key ke through Student aur Course tables se linked hai.

     Faayde:

    • Simple aur easy to understand

    • Bohot flexible aur scalable

    • Sabhi modern apps jaise websites, CRMs is model ka use karte hain

    3. Object-Oriented Data Model

     Kya hota hai?

    Ye model object-oriented programming (OOP) ka concept use karta hai (jaise Java, C++).

    • Data ko objects ke form mein store kiya jata hai.

    • Isme classes, inheritance, encapsulation ka use hota hai.

    • Complex data types (image, video) ko handle karne mein best hai.

     Example:

    class Student {
    int studentID;
    string name;
    List<Course> courses;
    }
     

    Yahan Student ek object hai jisme ek list of Course objects hai.

     Faayde:

    • Real-world cheezein achhe se represent hoti hain

    • Complex data handle karna easy hota hai

    • CAD, Multimedia, AI jaise applications ke liye useful


     Comparison Table 

    FeatureNetwork ModelRelational ModelObject-Oriented Model
    Data ka StructureGraph (nodes aur pointers)Table (rows/columns)Objects (classes & attributes)
    Relationship ka TareekaSet & PointersPrimary/Foreign KeysObject References
    Query LanguageNavigational (low-level)SQLOQL ya code embedded
    Use karna kitna easy?ComplexEasyModerate
    Modern useNahiHaan (mostly used)Special apps mein

     Short Summary 

    • -> Network Model: Pura data pointer se connected hota hai, old style, zyada complex.

    • -> Relational Model: Tables ka use hota hai, sabse popular, easy to use.

    • -> Object-Oriented Model: Objects ka use karta hai, OOP based apps ke liye best.

    Scroll to Top