91
GB
What is the SQL:1999 NATURAL JOIN and why is it considered risky in production code?
IN
SQL:1999 नेचुरल जॉइन क्या है और इसे उत्पादन कोड में जोखिम भरा क्यों माना जाता है?
A
A join optimized for natural data patterns
प्राकृतिक डेटा पैटर्न के लिए अनुकूलित एक जुड़ाव
B
A join that requires no database knowledge
एक ऐसा जुड़ाव जिसके लिए किसी डेटाबेस ज्ञान की आवश्यकता नहीं है
C
A join that works on natural language conditions
एक जुड़ाव जो प्राकृतिक भाषा स्थितियों पर काम करता है
D
Automatically joins on ALL columns with the same name in both tables using equality without requiring explicit ON clause - risky because schema changes (adding a new column with same name in both tables) silently change join semantics
स्पष्ट ON क्लॉज की आवश्यकता के बिना समानता का उपयोग करते हुए दोनों तालिकाओं में समान नाम वाले सभी कॉलमों पर स्वचालित रूप से जुड़ जाता है - जोखिम भरा है क्योंकि स्कीमा बदलता है (दोनों तालिकाओं में समान नाम के साथ एक नया कॉलम जोड़ना) चुपचाप जॉइन सिमेंटिक्स को बदल देता है
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English)
NATURAL JOIN risks: (1) Implicitly joins on ALL matching column names - if you add a column with same name to both tables, the join condition silently changes. (2) Hard to understand without knowing schemas. (3) Breaks when column names change. Always prefer explicit ON or USING clauses in production.
व्याख्या (हिन्दी)
स्वाभाविक जुड़ाव जोखिम: (1) सभी मेल खाने वाले कॉलम नामों पर अंतर्निहित रूप से जुड़ता है - यदि आप दोनों तालिकाओं में समान नाम वाला कॉलम जोड़ते हैं, तो जुड़ने की स्थिति चुपचाप बदल जाती है। (2) स्कीमा को जाने बिना समझना कठिन है। (3) कॉलम नाम बदलने पर टूट जाता है। उत्पादन में हमेशा स्पष्ट ON या USING क्लॉज को प्राथमिकता दें।