TheHingineer

  • DBMS


  • DBMS Part-1

  • DBMS Part-2

  • DBMS Part-3

  • DBMS Part-4

  • DBMS Part-5

  •  Relational Data Model in DBMS 

     Relational Data Model kya hota hai?

    Relational Data Model ek aisa model hai jisme data tables ke form mein store hota hai. Har table ko relation kehte hain, aur ye table rows aur columns se banta hai.

    • Har row ko tuple (ya record) kehte hain.

    • Har column ko attribute (ya field) kehte hain.

    Jaise aap Excel sheet dekhte ho — waise hi data tables ke form mein hota hai.


     Basic Terms aur Unka Matlab

    TermMatlab (Meaning)
    RelationTable (rows aur columns ka group)
    TupleEk row ya record in table
    AttributeColumn ya field in table
    DomainPossible values ka set kisi attribute ke liye
    DegreeKitne attributes (columns) hain ek table mein
    CardinalityKitne tuples (rows) hain ek table mein

     Example: Student Table

    StudentIDNameAgeCourse
    101Ayesha20B.Tech
    102Rahul21BCA
    103Sneha19B.Sc
    • Table ka naam hai: Student

    • 4 columns hain → StudentID, Name, Age, Course

    • 3 rows hain → 3 students ka data

    • Age attribute ka domain ho sakta hai 16 se 60 years

     Keys in Relational Model

    Data ko uniquely identify karne ke liye keys use hoti hain:

    1. Primary Key

    • Ek column ya columns ka group jo har row ko uniquely identify karta hai.

    • Example: StudentID yahan pe primary key hai.

    2. Foreign Key

    • Ek table ka column jo dusre table ki primary key ko refer karta hai.

    • Isse tables ke beech relationship banta hai.

    •  

     Tables ke Beech Relationship

    Tables ko hum foreign key ke through connect karte hain — bina data repeat kiye.

    Example: Student aur Course tables

    Student Table

    StudentIDName
    1Riya
    2Aman

    Course Table

    CourseIDCourseName
    101DBMS
    102OS

    Enrollment Table (link between student aur course)

    StudentIDCourseID
    1101
    2101
    2102
    • Enrollment table mein StudentID aur CourseID dono foreign keys hain.

    • Isse pata chalta hai kaunsa student kaunsa course kar raha hai.

     Features of Relational Data Model

    1. Simple: Tables ko samajhna easy hota hai.

    2. Flexible: Data ko modify karna aasan hota hai.

    3. Secure: Data integrity maintain hoti hai.

    4. Independent: Table ke structure change karne par queries ka effect kam hota hai.

    5. SQL ka use hota hai data ko access aur manage karne ke liye.

     Relational Model ke Fayde

    •  -> Easy to understand

    •  -> SQL ka use karke data access simple hota hai

    •  -> Secure aur reliable

    •  -> Redundancy kam hoti hai

    •  -> Scalable (bade systems ke liye perfect)

     Thode Disadvantages

    • -> Complex queries slow ho sakti hain

    • -> Bohot saare joins performance slow kar dete hain

    • -> Unstructured data (images, videos) ke liye best nahi hai


     Summary

    Relational Data Model ka main concept hai data ko tables ke form mein store karna aur keys se tables ko link karna. Ye model MySQL, Oracle, SQL Server, PostgreSQL jaise popular DBMS tools mein use hota hai.

    Scroll to Top