Free tutorials & notes in Hindi & English · Clean code examples 🧰 मुफ़्त PDF और फ़ोटो टूल्स →
MySQL + SQL · Lesson 14

RDBMS Concepts Examples के साथ

RDBMS क्या है

RDBMS (Relational Database Management System) वो DBMS है जो data को tables में store करता है और उन tables को keys से एक-दूसरे से जोड़ने देता है। यह relational model सरल फिर भी शक्तिशाली है, और इसीलिए MySQL, PostgreSQL और Oracle इतने इस्तेमाल होते हैं।

💡 RDBMS = वो DBMS जो data को keys से जुड़ी संबंधित tables (rows और columns) में store करता है।

Tables, rows और columns

Table एक तरह की चीज़ (जैसे students) का data रखती है। इसके हिस्से:

  • Column — एक field जैसे name या marks; data type तय करता है।
  • Row — एक record, जैसे एक student, हर column की value के साथ।
rollnamemarks
1Aman88
2Diya92

यहाँ roll, name, marks columns हैं; हर line एक row।

Keys संक्षेप में

  • Primary key — हर row को विशिष्ट पहचानती है (जैसे roll); कभी null नहीं, कभी दोहराई नहीं।
  • Foreign key — वो column जो दूसरी table की primary key से जुड़ता है।
  • Unique key — values सब अलग होनी चाहिए, पर एक null allow कर सकती है।

Keys data सही रखती हैं और tables जोड़ने देती हैं। हम इन्हें अपने lessons में गहराई से देखते हैं।

Tables कैसे जुड़ती हैं

RDBMS की ताक़त tables जोड़ना है। एक table में foreign key दूसरी की primary key की ओर इशारा करती है:

students(roll PK, name)
marks(id PK, roll FK -> students.roll, subject, score)

यहाँ marks.roll हर mark को एक student से जोड़ती है। यह हर mark row में student details दोहराने से बचाता है।

DBMS बनाम RDBMS

बातDBMSRDBMS
Data storeFiles या विविध रूपTables (relations)
Relationshipsआमतौर पर कोई नहींहाँ, keys से
ConstraintsसीमितKeys, constraints लागू
उदाहरणFile-based systemsMySQL, Oracle

एक हल उदाहरण

एक दुकान सोचिए। एक विशाल गंदी table के बजाय, RDBMS data बाँटता है:

  • customers — id, name, city।
  • orders — id, customer_id (FK), amount।

हर order सिर्फ़ customer_id store करता है, पूरी customer details नहीं। किसी customer के orders देखने को, RDBMS दोनों tables को उस key पर join करता है — कोई duplication नहीं, हमेशा संगत।

आम गलतियाँ

  • Rows में data दोहराना। इसके बजाय संबंधित tables में बाँटिए।
  • कोई primary key नहीं। हर table में rows पहचानने को एक होनी चाहिए।
  • Row और column मिलाना। Columns fields हैं; rows records।
  • DBMS और RDBMS को एक समझना। RDBMS tables, keys और relationships जोड़ता है।

सारांश

  • RDBMS data को tables में store करता है और keys से जोड़ता है।
  • Columns fields हैं; rows records।
  • Primary key हर row को विशिष्ट पहचानती है।
  • Foreign key एक table को दूसरी से जोड़ती है।
  • Relational model duplication बचाता है और data संगत रखता है।

आगे, बड़ी तस्वीर सीखिए DBMS tutorial में, या keys DBMS keys explained में।

अक्सर पूछे जाने वाले प्रश्न (FAQ)

RDBMS क्या है?
RDBMS (Relational Database Management System) वो DBMS है जो data को rows और columns वाली tables (relations) में store करता है, और tables को keys से एक-दूसरे से जोड़ने देता है। MySQL, PostgreSQL और Oracle RDBMS उदाहरण हैं।
DBMS और RDBMS में क्या अंतर है?
हर RDBMS एक DBMS है, पर RDBMS ख़ासकर data को संबंधित tables में व्यवस्थित करता है और keys व constraints के साथ relational model follow करता है। सादा DBMS relationships बिना दूसरे तरीक़ों से data store कर सकता है।
Table में rows और columns क्या हैं?
Column एक field है (जैसे name या age) और तय करता है किस तरह का data store होता है। Row (record या tuple भी) एक पूरी entry है, हर column की value रखती।
Primary key क्या है?
Primary key वो column (या columns का set) है जो table में हर row को विशिष्ट रूप से पहचानता है, जैसे students को roll number। कोई दो rows एक ही primary key value साझा नहीं कर सकतीं, और यह null नहीं हो सकती।
RDBMS में tables कैसे जुड़ती हैं?
Tables keys से जुड़ती हैं: एक table में foreign key दूसरी की primary key की ओर इशारा करती है। जैसे, orders table में customer_id हो सकती है जो customers table की id से जुड़े।
🔗

Share this topic with a friend

यह topic किसी दोस्त को भेजें

Found it useful? Send it to a classmate learning the same thing.

अच्छा लगा? जो दोस्त यही सीख रहा है, उसे भेज दीजिए।

अगला topicRelation, Tuple, Attribute, Domain, Degree और Cardinality आपकी प्रगति: 14 / 151 (9%) · Lesson 15 / 151 आगे बढ़ें →

यह lesson कैसा लगा?

आपकी राय से हम content और बेहतर बनाते हैं।

अपना review और सुझाव लिखें (वैकल्पिक)

Review approve होने के बाद आपका नाम और शहर इसके साथ public दिख सकते हैं। Email या phone न लिखें।

▶ Video lesson

RDBMS भाग 3 – Class XI Commerce IT

Class XI Commerce IT students के लिए Relational Database Management System (RDBMS) पर CodingEasily का video lesson।

RDBMS भाग 3 – Class XI Commerce IT – video thumbnailRDBMS भाग 3 – Class XI Commerce IT

▶ YouTube channel subscribe करें