Related Topics

Related Subjects

Operations on Relational Data Model in Hindi

RGPV University / DIPLOMA_CSE / DBMS

Operations on Relational Data Model in Hindi

Select Operation in Hindi

Relational Algebra में **Select Operation (σ)** का उपयोग तब किया जाता है जब हमें किसी Relation (Table) से कुछ specific rows को चुनना होता है। यह operation rows को filter करता है किसी particular condition के आधार पर। मान लीजिए हमारे पास एक Students नाम की Table है और हमें केवल उन्हीं students की जानकारी चाहिए जिनका age 18 से ज़्यादा है, तो हम Select Operation का इस्तेमाल करेंगे।

σ age > 18 (Students)

Project Operation in Hindi

**Project Operation (π)** का उपयोग Table की specific columns को select करने के लिए होता है। जब हमें केवल कुछ ही attributes (columns) की ज़रूरत होती है और बाकी को ignore करना होता है, तब इस ऑपरेशन का प्रयोग करते हैं। उदाहरण के लिए, यदि हमें केवल Students के नाम और age चाहिए, तो:

π name, age (Students)

Union Operation in Hindi

**Union (∪)** operation दो relations को combine करता है और दोनों में मौजूद सभी unique tuples को return करता है। ध्यान रखें कि दोनों relations का structure (i.e., number of columns और उनका order) same होना चाहिए। उदाहरण के लिए अगर हमारे पास दो tables हैं - CS_Students और IT_Students - और हम दोनों के students की एक combined list चाहते हैं:

CS_Students ∪ IT_Students

Set Difference Operation in Hindi

**Set Difference (-)** operation यह बताता है कि एक relation में कौन से tuples हैं जो दूसरे relation में नहीं हैं। यह operation बहुत useful होता है जब हमें दो datasets की तुलना करनी हो और differences जानने हों। उदाहरण के लिए:

CS_Students - IT_Students

Cartesian Product in Hindi

**Cartesian Product (×)** दो relations को इस तरह जोड़ता है कि हर एक row पहले relation से, हर एक row दूसरे relation से combine हो जाती है। यह operation तब उपयोगी होता है जब हमें Join operation की तरह intermediate step बनाना हो। मान लीजिए हमारे पास दो relations हैं: Students और Courses:

Students × Courses

Rename Operation in Hindi

**Rename Operation (ρ)** का उपयोग किसी relation या उसके attributes का नाम temporarily बदलने के लिए किया जाता है। यह operation complex queries में clarity बनाए रखने में मदद करता है। उदाहरण के लिए:

ρ (S, Students)

इसका मतलब है Students table को temporarily S नाम दिया गया है।

Intersection Operation in Hindi

**Intersection (∩)** operation उन tuples को return करता है जो दोनों relations में common होते हैं। यह बहुत useful होता है जब हमें केवल shared data चाहिए होता है। उदाहरण:

CS_Students ∩ IT_Students

Join Operation in Hindi

**Join Operation** दो या अधिक relations को एक meaningful तरीके से जोड़ने के लिए होता है। यह Relational Algebra का सबसे important operation है। इसमें कई प्रकार होते हैं: Natural Join, Inner Join, Outer Join, आदि। मान लीजिए हमारे पास दो tables हैं - Students(id, name) और Marks(id, score) - और हमें दोनों का combined डेटा चाहिए:

Students ⨝ Marks

यहाँ Join दोनों tables के common attribute `id` के माध्यम से होगा।

Division Operation in Hindi

**Division Operation (÷)** थोड़ा advanced होता है और तब उपयोगी होता है जब हमें यह check करना हो कि कौन से tuples किसी दिए गए set के सभी tuples से related हैं। उदाहरण: मान लीजिए हम यह जानना चाहते हैं कि कौन से students ने सभी courses को complete किया है।

Student_Courses ÷ Courses

इसका मतलब है उन students की list जिनके पास सभी courses हैं जो Courses relation में दिए गए हैं।

Relational Operations Table (in Hindi)

Operation Symbol Use
Select σ Rows को Filter करने के लिए
Project π Specific Columns चुनने के लिए
Union दो relations को मिलाने के लिए
Set Difference - एक relation से दूसरे को हटाने के लिए
Cartesian Product × हर tuple को combine करने के लिए
Rename ρ Name बदलने के लिए
Intersection Common tuples के लिए
Join Relations को logically जोड़ने के लिए
Division ÷ All tuples से related tuples के लिए

FAQs

Select Operation (σ) का उपयोग relation से केवल वही rows निकालने के लिए किया जाता है जो किसी condition को satisfy करती हैं। यह rows को filter करने का काम करता है।
Select Operation rows को filter करता है जबकि Project Operation columns को चुनता है। Select का प्रयोग specific condition की rows निकालने में होता है और Project का प्रयोग specific attributes (columns) को निकालने में होता है।
Join Operation दो या अधिक relations को common attribute के आधार पर logically जोड़ता है। इसका प्रयोग combined और meaningful data प्राप्त करने में होता है।
Cartesian Product (×) दो relations के बीच सभी possible combinations बनाता है। यह join operation की preparation में intermediate step की तरह काम करता है।
Division Operation (÷) उन tuples को return करता है जो दूसरे relation के सभी tuples से जुड़े होते हैं। यह operation तब उपयोगी होता है जब हमें यह check करना हो कि कौन सा entity सभी conditions fulfill करता है।
Rename Operation (ρ) का उपयोग किसी relation या उसके attributes का नाम temporarily बदलने के लिए किया जाता है ताकि complex queries में clarity बनी रहे और ambiguity से बचा जा सके।

Please Give Us Feedback