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

Relational Database और RDBMS

Relational database क्या है

Relational database data को tables में store करता है और उन tables को keys से जोड़ता है। यह relational model follow करता है, SQL से manage होता है, और अब तक का सबसे लोकप्रिय database है। MySQL, PostgreSQL और Oracle सब relational databases हैं।

💡 Relational database = tables में data + keys से जुड़ी tables + SQL से managed।

सब कुछ एक table है

Relational database में, सारा data rows और columns की tables में रहता है:

idnamecity
1AmanDelhi
2DiyaMumbai

Columns fields define करते हैं; हर row एक record है। यह सरल, एकसमान संरचना समझने और query करने में आसान है।

Keys से relationships

Tables keys से जुड़ती हैं। एक table में foreign key दूसरी की primary key की ओर इशारा करती है:

customers(id PK, name)
orders(id PK, customer_id FK -> customers.id, amount)

यह आपको customer details एक बार store करके कई orders उससे जोड़ने देता है — कोई duplication नहीं, और data संगत रहता है।

SQL भाषा है

SELECT name, city FROM customers WHERE city = 'Delhi';

Relational databases SQL (Structured Query Language) से manage होते हैं। आप इसे tables बनाने, data जोड़ने और बदलने, और queries चलाने को इस्तेमाल करते हैं। चूँकि SQL standard है, आपके कौशल अलग relational databases में transfer होते हैं।

ACID से भरोसेमंद

Relational databases ACID transactions support करते हैं — Atomicity, Consistency, Isolation, Durability। इसका मतलब बदलावों का समूह या तो पूरी तरह सफल या पूरी तरह असफल होता है, और committed data कभी नहीं खोता। यही उन्हें banking, orders और अन्य महत्वपूर्ण data को भरोसेमंद बनाता है।

यह लोकप्रिय क्यों है

  • सरल model — tables समझने में आसान।
  • शक्तिशाली queries — SQL data को आसानी से join, filter और summarise कर सकता है।
  • Data integrity — keys और constraints data सही रखते हैं।
  • भरोसेमंदता — ACID transactions महत्वपूर्ण data की रक्षा करते हैं।

ये ताक़तें relational databases को ज़्यादातर applications को default विकल्प बनाती हैं।

आम गलतियाँ

  • Relational और non-relational मिलाना। Relational fixed tables और SQL इस्तेमाल करता है; NoSQL ज़्यादा लचीला।
  • Keys के बजाय data दोहराना। Tables को foreign keys से जोड़िए।
  • MySQL और SQL मिलाना। MySQL database है; SQL भाषा।
  • ACID अनदेखा करना। इसी से transactions सुरक्षित हैं।

सारांश

  • Relational database data को keys से जुड़ी tables में store करता है।
  • यह relational model follow करता है और SQL से manage होता है।
  • Foreign keys tables जोड़ती और duplication बचाती हैं।
  • ACID transactions इसे महत्वपूर्ण data को भरोसेमंद बनाते हैं।
  • इसकी सरलता और ताक़त इसे सबसे लोकप्रिय database प्रकार बनाती हैं।

आगे, table model सीखिए RDBMS concepts में, या बड़ी तस्वीर DBMS tutorial में।

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

Relational database क्या है?
Relational database data को tables (rows और columns) में store करता है और उन tables को keys से जोड़ता है। यह relational model follow करता है, data manage करने को SQL इस्तेमाल करता है, और सबसे ज़्यादा इस्तेमाल होने वाला database है। MySQL और PostgreSQL उदाहरण हैं।
इसे relational क्यों कहते हैं?
इसे relational इसलिए कहते हैं क्योंकि यह relations (tables) और उनके बीच relationships के गणितीय विचार पर आधारित है। Tables keys से जुड़ती हैं, तो एक table का data दूसरी के data से संबंधित हो सकता है।
Relational database दूसरे databases से कैसे अलग है?
Relational databases data को fixed columns वाली structured tables में store करते हैं और SQL इस्तेमाल करते हैं। Non-relational (NoSQL) databases data ज़्यादा लचीले, जैसे documents या key-value pairs, store करते हैं, और तब इस्तेमाल होते हैं जब संरचना बदले या scale विशाल हो।
Relational databases कौन-सी भाषा इस्तेमाल करते हैं?
वे tables बनाने, data insert और update करने, और queries चलाने को SQL (Structured Query Language) इस्तेमाल करते हैं। SQL standard भाषा है, तो कौशल MySQL, PostgreSQL, Oracle और अन्य में transfer होते हैं।
Relational database में ACID का क्या मतलब है?
ACID का मतलब Atomicity, Consistency, Isolation और Durability है। ये गुण transactions को भरोसेमंद बनाते हैं, तो बदलावों का समूह या तो सब सफल या सब असफल होता है, और committed data कभी नहीं खोता। यह banking जैसी चीज़ों को ज़रूरी है।
🔗

Share this topic with a friend

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

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

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

💻 लाइव कोड एडिटर

इस पेज के प्रोग्राम यहीं तैयार हैं — चलाएँ, बदलें और सीखें। कुछ भी इंस्टॉल किए बिना।
OneCompiler द्वारा संचालित। कोड एडिटर में अपने आप आ जाता है — Run दबाकर आउटपुट देखें। अगर एडिटर न खुले तो नए टैब में खोलें.
अगला topicRDBMS Concepts Examples के साथ आपकी प्रगति: 13 / 151 (9%) · Lesson 14 / 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 करें