DBMS — MCQ Practice

Hindi aur English dono mein practice karo — click karo answer check karne ke liye.

📚 639 Questions 🌐 Hindi + English ✅ Free
भाषा / Language:
639 questions

Question 466

EN + हिं Medium
GB CUME_DIST() of top row is
IN शीर्ष पंक्ति का CUME_DIST() है
0.0 0.0
0.5 0.5
NULL व्यर्थ
1.0/N 1.0/एन
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) CUME_DIST=(rows≤current)/(total rows). Top row: 1/N (first row has only itself at/below it divided by N total).
व्याख्या (हिन्दी) CUME_DIST=(पंक्तियाँ≤वर्तमान)/(कुल पंक्तियाँ)। शीर्ष पंक्ति: 1/N (पहली पंक्ति में केवल स्वयं/नीचे ही कुल N से विभाजित है)।
🎯 Exam Perspective
DBMS ("Introduction to DBMS" sub-topic) के इस प्रश्न को — difficulty level "Medium" कई प्रतियोगी परीक्षाओं जैसे SSC, Railway, Banking और State PCS में repeat होते देखा गया है। Concept clarity के लिए explanation section जरूर पढ़ें।

Question 467

EN + हिं Medium
GB Window function can appear in which SQL clause
IN विंडो फ़ंक्शन किस SQL ​​क्लॉज में दिखाई दे सकता है
WHERE कहाँ
GROUP BY द्वारा समूह बनाएं
HAVING होना
SELECT and ORDER BY only केवल चुनें और ऑर्डर करें
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Window functions can ONLY appear in SELECT and ORDER BY clauses - not WHERE, GROUP BY, or HAVING.
व्याख्या (हिन्दी) विंडो फ़ंक्शंस केवल SELECT और ORDER BY क्लॉज़ में दिखाई दे सकते हैं - WHERE, GROUP BY, या HAVING में नहीं।
🎯 Exam Perspective
यह सवाल DBMS ("Introduction to DBMS" sub-topic) category का है — difficulty level "Medium", और SSC CGL, IBPS, RRB और State-level परीक्षाओं के exam pattern में इस तरह के questions common हैं। Answer choose करने के बाद दिया गया explanation जरूर पढ़ें।

Question 468

EN + हिं Medium
GB INTERSECT returns rows common to
IN INTERSECT सामान्य पंक्तियों को लौटाता है
First result only केवल पहला परिणाम
Second result only केवल दूसरा परिणाम
Neither result कोई नतीजा नहीं
BOTH result sets दोनों परिणाम सेट
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) INTERSECT: returns rows that appear in BOTH result sets.
व्याख्या (हिन्दी) इंटरसेक्ट: दोनों परिणाम सेटों में दिखाई देने वाली पंक्तियाँ लौटाता है।
🎯 Exam Perspective
यह प्रश्न DBMS ("Introduction to DBMS" sub-topic) की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है — difficulty level "Medium"। इस तरह के प्रश्न अक्सर UPSC, SSC, Banking और Police भर्ती जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें।

Question 469

EN + हिं Medium
GB EXCEPT (MINUS) returns
IN सिवाय (शून्य) रिटर्न
Rows in second result दूसरे परिणाम में पंक्तियाँ
Rows common to both दोनों में उभयनिष्ठ पंक्तियाँ
All rows from both दोनों से सभी पंक्तियाँ
Rows in FIRST result NOT in second पहले परिणाम में पंक्तियाँ दूसरे परिणाम में नहीं
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) EXCEPT/MINUS: rows from first result set that do NOT appear in the second.
व्याख्या (हिन्दी) सिवाय/माइनस: पहले परिणाम सेट की पंक्तियाँ जो दूसरे में दिखाई नहीं देती हैं।
🎯 Exam Perspective
DBMS ("Introduction to DBMS" sub-topic) से जुड़ा यह सवाल — difficulty level "Medium" उन students के लिए काम का है जो Railway, SSC, Banking और Defence परीक्षाओं की तैयारी कर रहे हैं। बेहतर होगा कि explanation पढ़कर concept clear करें, ताकि exam में similar प्रश्न आने पर confusion न हो।

Question 470

EN + हिं Medium
GB A correlated subquery references
IN एक सहसंबद्ध सबक्वेरी संदर्भ
No outer query कोई बाहरी प्रश्न नहीं
Only aggregate functions केवल समुच्चय कार्य करता है
A derived table एक व्युत्पन्न तालिका
Columns from the outer query and executes once per outer row बाहरी क्वेरी से कॉलम और प्रति बाहरी पंक्ति एक बार निष्पादित होता है
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Correlated subquery: references outer query columns and re-evaluated for each outer query row.
व्याख्या (हिन्दी) सहसंबंधित सबक्वेरी: बाहरी क्वेरी कॉलम का संदर्भ देता है और प्रत्येक बाहरी क्वेरी पंक्ति के लिए पुनर्मूल्यांकन किया जाता है।
🎯 Exam Perspective
SSC, Railway, Banking और State PCS जैसी परीक्षाओं में DBMS ("Introduction to DBMS" sub-topic) से सवाल अक्सर पूछे जाते हैं — difficulty level "Medium"। इसलिए सिर्फ answer रटने के बजाय, नीचे दी गई explanation को ध्यान से पढ़ें और concept समझें।

Question 471

EN + हिं Medium
GB A derived table is a subquery in
IN एक व्युत्पन्न तालिका एक सबक्वेरी है
WHERE clause कहां कारण
HAVING clause उपवाक्य होना
SELECT list सूची चुनें
FROM clause खंड से
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Derived table (inline view): subquery in FROM clause treated as temporary table.
व्याख्या (हिन्दी) व्युत्पन्न तालिका (इनलाइन दृश्य): FROM क्लॉज में सबक्वेरी को अस्थायी तालिका के रूप में माना जाता है।
🎯 Exam Perspective
अगर आप SSC CGL, IBPS, RRB और State-level परीक्षाओं की तैयारी कर रहे हैं, तो DBMS ("Introduction to DBMS" sub-topic) का यह topic आपके लिए महत्वपूर्ण है — difficulty level "Medium"। Exam में accuracy बढ़ाने के लिए हर सवाल की explanation जरूर पढ़ें।

Question 472

EN + हिं Medium
GB EXISTS vs IN: which is preferred for large subquery results
IN EXISTS बनाम IN: जिसे बड़े सबक्वेरी परिणामों के लिए प्राथमिकता दी जाती है
IN is always better IN हमेशा बेहतर होता है
EXISTS is always better EXISTS हमेशा बेहतर होता है
Neither matters कोई भी मायने नहीं रखता
EXISTS is often better for large subquery results (stops at first match) बड़े सबक्वेरी परिणामों के लिए EXISTS अक्सर बेहतर होता है (पहले मैच पर रुकता है)
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) EXISTS stops at first matching row; IN must collect all results first - EXISTS often more efficient.
व्याख्या (हिन्दी) EXISTS पहली मिलान पंक्ति पर रुकता है; IN को पहले सभी परिणाम एकत्र करने होंगे - अक्सर अधिक कुशल होते हैं।
🎯 Exam Perspective
DBMS ("Introduction to DBMS" sub-topic) के इस प्रश्न को — difficulty level "Medium" कई प्रतियोगी परीक्षाओं जैसे UPSC, SSC, Banking और Police भर्ती में repeat होते देखा गया है। Concept clarity के लिए explanation section जरूर पढ़ें।

Question 473

EN + हिं Medium
GB ALL operator: salary > ALL(subquery) means salary is
IN सभी ऑपरेटर: वेतन > सभी (सबक्वेरी) का अर्थ है वेतन
Greater than average of subquery सबक्वेरी के औसत से अधिक
Greater than any one value किसी भी एक मान से बड़ा
Greater than EVERY value in subquery (greater than MAX) सबक्वेरी में प्रत्येक मान से अधिक (MAX से अधिक)
Equal to all values सभी मूल्यों के लिए समान
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) >ALL: value must exceed EVERY value in subquery - equivalent to > MAX(subquery).
व्याख्या (हिन्दी) >सभी: मान सबक्वेरी में प्रत्येक मान से अधिक होना चाहिए - >MAX(सबक्वेरी) के बराबर।
🎯 Exam Perspective
यह सवाल DBMS ("Introduction to DBMS" sub-topic) category का है — difficulty level "Medium", और Railway, SSC, Banking और Defence परीक्षाओं के exam pattern में इस तरह के questions common हैं। Answer choose करने के बाद दिया गया explanation जरूर पढ़ें।

Question 474

EN + हिं Medium
GB ANY/SOME operator: salary > ANY(subquery) means salary is
IN कोई भी/कुछ ऑपरेटर: वेतन > कोई (सबक्वेरी) का अर्थ है वेतन
Greater than all values सभी मूल्यों से महान
Greater than AT LEAST ONE value in subquery (greater than MIN) सबक्वेरी में कम से कम एक मान से अधिक (MIN से अधिक)
Equal to all सबके लिए समान
Less than all सब से कम
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) >ANY: true if value greater than at least one value in subquery - equivalent to > MIN(subquery).
व्याख्या (हिन्दी) >कोई भी: यदि मान सबक्वेरी में कम से कम एक मान से अधिक है तो सत्य है - >MIN(सबक्वेरी) के बराबर।
🎯 Exam Perspective
यह प्रश्न DBMS ("Introduction to DBMS" sub-topic) की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है — difficulty level "Medium"। इस तरह के प्रश्न अक्सर SSC, Railway, Banking और State PCS जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें।

Question 475

EN + हिं Medium
GB Recursive CTE ANCHOR member is
IN पुनरावर्ती CTE एंकर सदस्य है
The recursive part पुनरावर्ती भाग
The base case (initial result set) आधार मामला (प्रारंभिक परिणाम सेट)
No WITH clause नहीं साथ खंड
An aggregation एक एकत्रीकरण
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Recursive CTE: anchor member = base case (non-recursive initial result). Recursive member references CTE.
व्याख्या (हिन्दी) पुनरावर्ती सीटीई: एंकर सदस्य = आधार मामला (गैर-पुनरावर्ती प्रारंभिक परिणाम)। पुनरावर्ती सदस्य संदर्भ सीटीई।
🎯 Exam Perspective
DBMS ("Introduction to DBMS" sub-topic) से जुड़ा यह सवाल — difficulty level "Medium" उन students के लिए काम का है जो SSC CGL, IBPS, RRB और State-level परीक्षाओं की तैयारी कर रहे हैं। बेहतर होगा कि explanation पढ़कर concept clear करें, ताकि exam में similar प्रश्न आने पर confusion न हो।

Question 476

EN + हिं Medium
GB COALESCE vs ISNULL: key difference
IN COALESCE बनाम ISNULL: मुख्य अंतर
No difference कोई फर्क नहीं
ISNULL takes only 2 arguments; COALESCE takes multiple arguments ISNULL केवल 2 तर्क लेता है; COALESCE कई तर्क लेता है
COALESCE takes 2; ISNULL takes multiple COALESCE 2 लेता है; ISNULL एकाधिक लेता है
Both take only 1 argument दोनों केवल 1 तर्क लेते हैं
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) ISNULL(expr,replacement): exactly 2 args. COALESCE(a,b,c,...): returns first non-NULL of multiple args.
व्याख्या (हिन्दी) ISNULL(एक्सपीआर,प्रतिस्थापन): बिल्कुल 2 तर्क। COALESCE(a,b,c,...): अनेक तर्कों में से पहला गैर-शून्य लौटाता है।
🎯 Exam Perspective
Railway, SSC, Banking और Defence परीक्षाओं जैसी परीक्षाओं में DBMS ("Introduction to DBMS" sub-topic) से सवाल अक्सर पूछे जाते हैं — difficulty level "Medium"। इसलिए सिर्फ answer रटने के बजाय, नीचे दी गई explanation को ध्यान से पढ़ें और concept समझें।

Question 477

EN + हिं Medium
GB CASE WHEN grade>=90 THEN 'A' WHEN grade>=80 THEN 'B' ELSE 'C' END assigns
IN मामला जब ग्रेड>=90 तब 'ए' जब ग्रेड>=80 तब 'बी' अन्यथा 'सी' अंत निर्दिष्ट करता है
Grade categories using IF-THEN-ELSE logic IF-THEN-ELSE तर्क का उपयोग करके ग्रेड श्रेणियां
Deletes grades ग्रेड हटाता है
Updates grades ग्रेड अपडेट करता है
Creates a grade table एक ग्रेड तालिका बनाता है
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) CASE: provides conditional IF-THEN-ELSE logic returning different values based on conditions.
व्याख्या (हिन्दी) मामला: शर्तों के आधार पर अलग-अलग मान लौटाने वाला सशर्त IF-THEN-ELSE तर्क प्रदान करता है।
🎯 Exam Perspective
अगर आप SSC, Railway, Banking और State PCS की तैयारी कर रहे हैं, तो DBMS ("Introduction to DBMS" sub-topic) का यह topic आपके लिए महत्वपूर्ण है — difficulty level "Medium"। Exam में accuracy बढ़ाने के लिए हर सवाल की explanation जरूर पढ़ें।

Question 478

EN + हिं Medium
GB PIVOT operation converts
IN PIVOT ऑपरेशन परिवर्तित करता है
Columns to rows स्तंभों से पंक्तियों तक
Rows into columns (rotates table) पंक्तियों को स्तंभों में बदलना (तालिका को घुमाना)
Data types डेटा के प्रकार
NULL values शून्य मान
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) PIVOT: transforms distinct values from rows in one column into multiple columns.
व्याख्या (हिन्दी) PIVOT: एक कॉलम में पंक्तियों से अलग-अलग मानों को एकाधिक कॉलम में परिवर्तित करता है।
🎯 Exam Perspective
DBMS ("Introduction to DBMS" sub-topic) के इस प्रश्न को — difficulty level "Medium" कई प्रतियोगी परीक्षाओं जैसे SSC CGL, IBPS, RRB और State-level परीक्षाओं में repeat होते देखा गया है। Concept clarity के लिए explanation section जरूर पढ़ें।

Question 479

EN + हिं Medium
GB CTE advantages over subqueries include
IN सबक्वेरीज़ पर सीटीई के फायदों में शामिल हैं
Always faster हमेशा तेज़
Requires fewer privileges कम विशेषाधिकारों की आवश्यकता है
Cannot be recursive पुनरावर्ती नहीं हो सकता
Improved readability and can be referenced multiple times in same query बेहतर पठनीयता और एक ही क्वेरी में कई बार संदर्भित किया जा सकता है
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) CTEs: improve readability, can be referenced multiple times, and can be recursive.
व्याख्या (हिन्दी) सीटीई: पठनीयता में सुधार, कई बार संदर्भित किया जा सकता है, और पुनरावर्ती हो सकता है।
🎯 Exam Perspective
यह सवाल DBMS ("Introduction to DBMS" sub-topic) category का है — difficulty level "Medium", और UPSC, SSC, Banking और Police भर्ती के exam pattern में इस तरह के questions common हैं। Answer choose करने के बाद दिया गया explanation जरूर पढ़ें।

Question 480

EN + हिं Medium
GB Which prevents SQL injection in parameterized queries
IN जो पैरामीटरयुक्त प्रश्नों में SQL इंजेक्शन को रोकता है
Escaping quotes only केवल उद्धरणों से बचना
Using ? or named parameters so user input treated as data not SQL code उपयोग कर रहे हैं? या नामित पैरामीटर ताकि उपयोगकर्ता इनपुट को डेटा के रूप में माना जाए न कि SQL कोड के रूप में
Using stored procedures only केवल संग्रहित प्रक्रियाओं का उपयोग करना
Using views only केवल दृश्यों का उपयोग करना
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Parameterized queries: ? or :name placeholders prevent input from being interpreted as SQL.
व्याख्या (हिन्दी) पैरामीटरयुक्त प्रश्न: ? या :name प्लेसहोल्डर इनपुट को SQL के रूप में व्याख्यायित होने से रोकते हैं।
🎯 Exam Perspective
यह प्रश्न DBMS ("Introduction to DBMS" sub-topic) की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है — difficulty level "Medium"। इस तरह के प्रश्न अक्सर Railway, SSC, Banking और Defence परीक्षाओं जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें।