2071 Question 2071 EN + हिं Easy GB What is a recursive CTE (WITH RECURSIVE) in SQL and what problem does it solve? IN SQL में रिकर्सिव CTE (रिकर्सिव के साथ) क्या है और यह किस समस्या का समाधान करता है? A A CTE that references itself for better performance एक सीटीई जो बेहतर प्रदर्शन के लिए खुद को संदर्भित करता है B A CTE that is defined within another CTE एक CTE जिसे किसी अन्य CTE के भीतर परिभाषित किया गया है C A CTE that references itself enabling traversal of hierarchical/graph data (like org charts, bill of materials, file systems) without knowing the depth in advance - queries tree/graph structures iteratively until no more rows are added एक सीटीई जो पहले से गहराई को जाने बिना पदानुक्रमित/ग्राफ़ डेटा (जैसे ऑर्ग चार्ट, सामग्रियों का बिल, फ़ाइल सिस्टम) के ट्रैवर्सल को सक्षम करने का संदर्भ देता है - जब तक कोई और पंक्तियां नहीं जोड़ी जाती तब तक पेड़/ग्राफ़ संरचनाओं से पूछताछ की जाती है D A CTE that automatically optimizes recursive queries एक सीटीई जो पुनरावर्ती प्रश्नों को स्वचालित रूप से अनुकूलित करता है ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) WITH RECURSIVE: consists of base case (initial rows) UNION ALL recursive case (joins back to CTE). Executes iteratively until recursive part returns no new rows. Solves: traversing trees (org charts, categories), graphs (paths, connectivity), sequences, date series generation. व्याख्या (हिन्दी) रिकर्सिव के साथ: इसमें बेस केस (प्रारंभिक पंक्तियाँ) यूनियन सभी रिकर्सिव केस (सीटीई में वापस जुड़ना) शामिल हैं। जब तक पुनरावर्ती भाग कोई नई पंक्तियाँ नहीं लौटाता, तब तक इसे पुनरावृत्त रूप से निष्पादित किया जाता है। हल: पेड़ों को पार करना (संगठन चार्ट, श्रेणियां), ग्राफ़ (पथ, कनेक्टिविटी), अनुक्रम, दिनांक श्रृंखला निर्माण। 🎯 Exam Perspective DBMS से जुड़ा यह सवाल — difficulty level "Easy" उन students के लिए काम का है जो SSC CGL, IBPS, RRB और State-level परीक्षाओं की तैयारी कर रहे हैं। बेहतर होगा कि explanation पढ़कर concept clear करें, ताकि exam में similar प्रश्न आने पर confusion न हो। 🔗 Related Questions What is the difference between ALTER TABLE MODIFY and A... What does CREATE SCHEMA do and how does it relate to CR... What is the effect of adding a NOT NULL constraint to a... 📚 Related Topic Introduction to DBMS (639) Database Architecture (135) Data Models (138)
2072 Question 2072 EN + हिं Medium GB What is a window function in SQL and how does it differ from aggregate functions? IN SQL में विंडो फ़ंक्शन क्या है और यह समग्र फ़ंक्शंस से कैसे भिन्न है? A Window functions require PARTITION BY to work विंडो फ़ंक्शंस को काम करने के लिए PARTITION BY की आवश्यकता होती है B Window functions only work with ORDER BY विंडो फ़ंक्शंस केवल ORDER BY के साथ काम करते हैं C Window functions are identical to aggregate functions विंडो फ़ंक्शंस समग्र फ़ंक्शंस के समान हैं D Window functions perform calculations across a set of rows related to the current row without collapsing them into a single result row - unlike aggregate functions which collapse groups into single rows विंडो फ़ंक्शंस वर्तमान पंक्ति से संबंधित पंक्तियों के एक सेट में उन्हें एक परिणाम पंक्ति में संक्षिप्त किए बिना गणना करते हैं - समग्र फ़ंक्शंस के विपरीत जो समूहों को एकल पंक्तियों में संक्षिप्त करते हैं ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Window functions: calculate across related rows (defined by OVER clause) but return a value for EACH row (not collapsed). Aggregate functions (GROUP BY): collapse groups into single summary rows. Window functions enable: running totals, rankings, moving averages, lag/lead comparisons. व्याख्या (हिन्दी) विंडो फ़ंक्शंस: संबंधित पंक्तियों की गणना करें (ओवर क्लॉज द्वारा परिभाषित) लेकिन प्रत्येक पंक्ति के लिए एक मान लौटाएं (संक्षिप्त नहीं)। समग्र कार्य (समूह द्वारा): समूहों को एकल सारांश पंक्तियों में संक्षिप्त करें। विंडो फ़ंक्शंस सक्षम करते हैं: रनिंग टोटल, रैंकिंग, मूविंग एवरेज, लैग/लीड तुलना। 🎯 Exam Perspective UPSC, SSC, Banking और Police भर्ती जैसी परीक्षाओं में DBMS से सवाल अक्सर पूछे जाते हैं — difficulty level "Medium"। इसलिए सिर्फ answer रटने के बजाय, नीचे दी गई explanation को ध्यान से पढ़ें और concept समझें। 🔗 Related Questions What is a recursive CTE (WITH RECURSIVE) in SQL and wha... What is the effect of adding a NOT NULL constraint to a... What does ON DELETE CASCADE in a FOREIGN KEY constraint... 📚 Related Topic Introduction to DBMS (639) Database Architecture (135) Data Models (138)
2073 Question 2073 EN + हिं Medium GB What is the difference between a subquery and a derived table (inline view) in SQL? IN SQL में सबक्वेरी और व्युत्पन्न तालिका (इनलाइन व्यू) के बीच क्या अंतर है? A They are always identical वे हमेशा एक जैसे होते हैं B A subquery is any query nested within another query; a derived table (inline view) is specifically a subquery in the FROM clause that acts as a named temporary table for the outer query - derived tables require an alias एक सबक्वेरी किसी अन्य क्वेरी के भीतर निहित कोई भी क्वेरी है; एक व्युत्पन्न तालिका (इनलाइन व्यू) विशेष रूप से FROM क्लॉज में एक सबक्वेरी है जो बाहरी क्वेरी के लिए नामित अस्थायी तालिका के रूप में कार्य करती है - व्युत्पन्न तालिकाओं के लिए उपनाम की आवश्यकता होती है C Subqueries only appear in WHERE clauses; derived tables only in FROM सबक्वेरीज़ केवल WHERE क्लॉज में दिखाई देती हैं; केवल FROM में व्युत्पन्न तालिकाएँ D Derived tables are stored permanently; subqueries are temporary व्युत्पन्न तालिकाएँ स्थायी रूप से संग्रहीत की जाती हैं; उपश्रेणियाँ अस्थायी हैं ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Subquery: nested query in WHERE, HAVING, SELECT, or FROM clauses. Derived table/inline view: subquery in the FROM clause that generates a temporary table. Example: SELECT * FROM (SELECT dept, AVG(salary) AS avg_sal FROM emp GROUP BY dept) AS dept_avgs WHERE avg_sal > 50000. व्याख्या (हिन्दी) सबक्वेरी: WHERE, HAVING, SELECT, या FROM क्लॉज में नेस्टेड क्वेरी। व्युत्पन्न तालिका/इनलाइन दृश्य: FROM क्लॉज में सबक्वेरी जो एक अस्थायी तालिका उत्पन्न करती है। उदाहरण: SELECT * FROM (चयन विभाग, AVG(वेतन) AS avg_sal FROM Emp Group BY विभाग) AS dept_avgs जहां avg_sal > 50000। 🎯 Exam Perspective अगर आप Railway, SSC, Banking और Defence परीक्षाओं की तैयारी कर रहे हैं, तो DBMS का यह topic आपके लिए महत्वपूर्ण है — difficulty level "Medium"। Exam में accuracy बढ़ाने के लिए हर सवाल की explanation जरूर पढ़ें। 🔗 Related Questions What does ON DELETE CASCADE in a FOREIGN KEY constraint... What is the effect of adding a NOT NULL constraint to a... What is a SQL DOMAIN concept and how does it differ fro... 📚 Related Topic Introduction to DBMS (639) Database Architecture (135) Data Models (138)
2074 Question 2074 EN + हिं Medium GB What is the SQL HAVING clause and why is it necessary (can WHERE replace it)? IN SQL HAVING क्लॉज़ क्या है और यह क्यों आवश्यक है (WHERE इसे प्रतिस्थापित कर सकता है)? A HAVING and WHERE are interchangeable होना और कहाँ विनिमेय हैं B HAVING is only for numeric data; WHERE handles text HAVING केवल संख्यात्मक डेटा के लिए है; WHERE टेक्स्ट को संभालता है C HAVING filters groups after GROUP BY aggregation and can reference aggregate function results (e.g. HAVING COUNT(*) > 5); WHERE cannot reference aggregate functions because it runs before aggregation - HAVING is necessary for filtering based on aggregated data एकत्रीकरण द्वारा समूह के बाद समूहों को फ़िल्टर करना और समग्र फ़ंक्शन परिणामों को संदर्भित करना (उदाहरण के लिए HAVING COUNT(*) > 5); WHERE समग्र कार्यों को संदर्भित नहीं कर सकता क्योंकि यह एकत्रीकरण से पहले चलता है - एकत्रित डेटा के आधार पर फ़िल्टर करने के लिए HAVING आवश्यक है D WHERE is always more efficient than HAVING WHERE हमेशा HAVING से अधिक कुशल होता है ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) HAVING is necessary because: WHERE runs before aggregation (cannot reference aggregate functions). HAVING runs after GROUP BY aggregation (can reference COUNT, SUM, AVG, MAX, MIN results). Example: SELECT dept, COUNT(*) FROM emp GROUP BY dept HAVING COUNT(*) > 5 - impossible with WHERE. व्याख्या (हिन्दी) HAVING आवश्यक है क्योंकि: WHERE एकत्रीकरण से पहले चलता है (कुल कार्यों का संदर्भ नहीं दे सकता)। समूह द्वारा एकत्रीकरण के बाद HAVING चलता है (COUNT, SUM, AVG, MAX, MIN परिणामों का संदर्भ दे सकता है)। उदाहरण: विभाग द्वारा विभाग का चयन करें, गिनती(*) को विभाग के अनुसार समूह से चुनें, जिसमें गिनती(*) > 5 - WHERE के साथ असंभव है। 🎯 Exam Perspective DBMS के इस प्रश्न को — difficulty level "Medium" कई प्रतियोगी परीक्षाओं जैसे SSC, Railway, Banking और State PCS में repeat होते देखा गया है। Concept clarity के लिए explanation section जरूर पढ़ें। 🔗 Related Questions What does CREATE SCHEMA do and how does it relate to CR... What does ON DELETE CASCADE in a FOREIGN KEY constraint... What is the difference between ALTER TABLE MODIFY and A... 📚 Related Topic Introduction to DBMS (639) Database Architecture (135) Data Models (138)
2075 Question 2075 EN + हिं Medium GB What is the difference between DROP TABLE and TRUNCATE TABLE? IN ड्रॉप टेबल और ट्रंकेट टेबल के बीच क्या अंतर है? A TRUNCATE TABLE removes the table structure; DROP TABLE only removes data TRUNCATE TABLE तालिका संरचना को हटा देता है; ड्रॉप टेबल केवल डेटा हटाता है B DROP TABLE is DDL - removes the table structure, all data, indexes, triggers, and constraints permanently; TRUNCATE TABLE is DDL in most DBMS - removes all data but preserves the table structure, indexes, and column definitions ड्रॉप टेबल डीडीएल है - टेबल संरचना, सभी डेटा, इंडेक्स, ट्रिगर और बाधाओं को स्थायी रूप से हटा देता है; ट्रंकेट टेबल अधिकांश डीबीएमएस में डीडीएल है - सभी डेटा को हटा देता है लेकिन टेबल संरचना, इंडेक्स और कॉलम परिभाषाओं को संरक्षित करता है C They are functionally identical DDL operations वे कार्यात्मक रूप से समान डीडीएल ऑपरेशन हैं D Both are DML operations दोनों डीएमएल ऑपरेशन हैं ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) DROP TABLE: removes everything - table, all data, indexes, triggers, constraints, dependencies. Cannot be reversed after commit. TRUNCATE: removes all rows (fastest, minimal logging), preserves table structure/indexes/constraints. TRUNCATE cannot have WHERE clause. व्याख्या (हिन्दी) ड्रॉप टेबल: सब कुछ हटा देता है - टेबल, सभी डेटा, इंडेक्स, ट्रिगर, बाधाएं, निर्भरताएं। प्रतिबद्धता के बाद उलटा नहीं किया जा सकता. ट्रंकेट: सभी पंक्तियों को हटाता है (सबसे तेज़, न्यूनतम लॉगिंग), तालिका संरचना/अनुक्रमणिका/बाधाओं को संरक्षित करता है। TRUNCATE में WHERE क्लॉज नहीं हो सकता। 🎯 Exam Perspective यह सवाल DBMS category का है — difficulty level "Medium", और SSC CGL, IBPS, RRB और State-level परीक्षाओं के exam pattern में इस तरह के questions common हैं। Answer choose करने के बाद दिया गया explanation जरूर पढ़ें। 🔗 Related Questions What is the effect of adding a NOT NULL constraint to a... What is the difference between a subquery and a derived... What is a recursive CTE (WITH RECURSIVE) in SQL and wha... 📚 Related Topic Introduction to DBMS (639) Database Architecture (135) Data Models (138)
2076 Question 2076 EN + हिं Easy GB What does ON DELETE CASCADE in a FOREIGN KEY constraint specify? IN विदेशी कुंजी बाधा में ऑन डिलीट कैस्केड क्या निर्दिष्ट करता है? A Prevent deletion of parent rows that have child references उन मूल पंक्तियों को हटाने से रोकें जिनमें बाल संदर्भ हैं B Delete the foreign key constraint when parent is deleted पेरेंट हटा दिए जाने पर विदेशी कुंजी बाधा हटा दें C When a referenced row in the parent table is deleted, automatically delete all corresponding rows in the child table that reference it जब मूल तालिका में एक संदर्भित पंक्ति हटा दी जाती है, तो चाइल्ड तालिका में इसका संदर्भ देने वाली सभी संबंधित पंक्तियाँ स्वचालित रूप से हटा दी जाती हैं D When a child row is deleted, automatically delete the parent row जब कोई चाइल्ड पंक्ति हटा दी जाती है, तो मूल पंक्ति स्वचालित रूप से हटा दी जाती है ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) ON DELETE CASCADE: automatically propagates deletes from parent to child. When parent row is deleted, all child rows with matching FK are automatically deleted. Also: ON DELETE SET NULL (set FK to NULL), ON DELETE RESTRICT/NO ACTION (prevent parent deletion if child references exist). व्याख्या (हिन्दी) डिलीट कैस्केड पर: स्वचालित रूप से माता-पिता से बच्चे तक डिलीट को प्रसारित करता है। जब मूल पंक्ति हटा दी जाती है, तो मिलान वाली FK वाली सभी चाइल्ड पंक्तियाँ स्वचालित रूप से हटा दी जाती हैं। इसके अलावा: डिलीट सेट शून्य पर (एफके को शून्य पर सेट करें), डिलीट प्रतिबंध/कोई कार्रवाई नहीं (यदि बच्चे के संदर्भ मौजूद हैं तो पैरेंट डिलीट को रोकें)। 🎯 Exam Perspective यह प्रश्न DBMS की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है — difficulty level "Easy"। इस तरह के प्रश्न अक्सर UPSC, SSC, Banking और Police भर्ती जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें। 🔗 Related Questions What is the SQL HAVING clause and why is it necessary (... What is a recursive CTE (WITH RECURSIVE) in SQL and wha... What is a window function in SQL and how does it differ... 📚 Related Topic Introduction to DBMS (639) Database Architecture (135) Data Models (138)
2077 Question 2077 EN + हिं Medium GB What is the difference between ALTER TABLE MODIFY and ALTER TABLE CHANGE in MySQL? IN MySQL में ALTER TABLE MODIFY और ALTER TABLE CHANGE के बीच क्या अंतर है? A They are identical operations वे समान परिचालन हैं B CHANGE only changes column names; MODIFY only changes data types परिवर्तन केवल स्तंभ नाम बदलता है; MODIFY केवल डेटा प्रकार बदलता है C MODIFY is for adding columns; CHANGE is for removing columns MODIFY कॉलम जोड़ने के लिए है; परिवर्तन स्तंभों को हटाने के लिए है D MODIFY changes a column definition (data type, constraints) but keeps the column name; CHANGE can rename the column AND change its definition (requires specifying the new column definition even if unchanged) MODIFY एक कॉलम परिभाषा (डेटा प्रकार, बाधाएं) बदलता है लेकिन कॉलम नाम रखता है; CHANGE कॉलम का नाम बदल सकता है और उसकी परिभाषा बदल सकता है (अपरिवर्तित होने पर भी नई कॉलम परिभाषा निर्दिष्ट करने की आवश्यकता है) ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) MySQL: ALTER TABLE t MODIFY col INT NOT NULL (changes type/constraints, keeps name). ALTER TABLE t CHANGE old_col new_col INT NOT NULL (renames AND modifies - must specify full new definition). ANSI SQL uses ALTER COLUMN. PostgreSQL uses ALTER COLUMN. व्याख्या (हिन्दी) MySQL: ALTER TABLE t Modify col INT NOT NULL (प्रकार/बाधाओं को बदलता है, नाम रखता है)। तालिका में परिवर्तन करें और पुराने_कॉल को बदलें नया_कॉल पूर्णांक शून्य नहीं है (नाम बदलें और संशोधित करें - पूर्ण नई परिभाषा निर्दिष्ट करनी होगी)। ANSI SQL ALTER COLUMN का उपयोग करता है। PostgreSQL ALTER COLUMN का उपयोग करता है। 🎯 Exam Perspective DBMS से जुड़ा यह सवाल — difficulty level "Medium" उन students के लिए काम का है जो Railway, SSC, Banking और Defence परीक्षाओं की तैयारी कर रहे हैं। बेहतर होगा कि explanation पढ़कर concept clear करें, ताकि exam में similar प्रश्न आने पर confusion न हो। 🔗 Related Questions What is the purpose of the GENERATED ALWAYS AS clause i... What is a SQL DOMAIN concept and how does it differ fro... What is CREATE INDEX and what is the difference between... 📚 Related Topic Introduction to DBMS (639) Database Architecture (135) Data Models (138)
2078 Question 2078 EN + हिं Medium GB What is the purpose of CREATE TABLE AS SELECT (CTAS) and what is NOT copied? IN CREATE TABLE AS SELECT (CTAS) का उद्देश्य क्या है और क्या कॉपी नहीं किया गया है? A Creates a new physical table populated with data from the SELECT query results - but does NOT copy constraints (primary keys, foreign keys, indexes, check constraints) from the source SELECT क्वेरी परिणामों के डेटा से भरी हुई एक नई भौतिक तालिका बनाता है - लेकिन स्रोत से बाधाओं (प्राथमिक कुंजी, विदेशी कुंजी, अनुक्रमित, चेक बाधाएं) की प्रतिलिपि नहीं बनाता है B Creates a temporary table with the SELECT schema SELECT स्कीमा के साथ एक अस्थायी तालिका बनाता है C Creates a view based on a SELECT query SELECT क्वेरी के आधार पर एक दृश्य बनाता है D Creates a materialized view from the SELECT चयन से एक भौतिक दृश्य बनाता है ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) CTAS: creates a new table with the structure derived from the SELECT and populated with the SELECT result data. Copies: column names and data types. Does NOT copy: PRIMARY KEY, FOREIGN KEY, indexes, triggers, constraints (these must be added separately after creation). व्याख्या (हिन्दी) CTAS: SELECT से प्राप्त संरचना के साथ एक नई तालिका बनाता है और SELECT परिणाम डेटा से भर जाता है। प्रतिलिपियाँ: स्तंभ नाम और डेटा प्रकार। प्रतिलिपि नहीं बनाता: प्राथमिक कुंजी, विदेशी कुंजी, अनुक्रमणिका, ट्रिगर, बाधाएं (इन्हें निर्माण के बाद अलग से जोड़ा जाना चाहिए)। 🎯 Exam Perspective SSC, Railway, Banking और State PCS जैसी परीक्षाओं में DBMS से सवाल अक्सर पूछे जाते हैं — difficulty level "Medium"। इसलिए सिर्फ answer रटने के बजाय, नीचे दी गई explanation को ध्यान से पढ़ें और concept समझें। 🔗 Related Questions What is CREATE INDEX and what is the difference between... What does ON DELETE CASCADE in a FOREIGN KEY constraint... What does the RESTRICT option do in DROP TABLE RESTRICT... 📚 Related Topic Introduction to DBMS (639) Database Architecture (135) Data Models (138)
2079 Question 2079 EN + हिं Medium GB What is a SQL DOMAIN concept and how does it differ from a simple column data type? IN SQL डोमेन अवधारणा क्या है और यह साधारण कॉलम डेटा प्रकार से कैसे भिन्न है? A A domain is a synonym for a database schema डोमेन डेटाबेस स्कीमा का पर्याय है B A domain is a named reusable column specification that combines a data type with optional constraints (DEFAULT, CHECK) allowing the domain to be used across multiple tables for consistency - defined with CREATE DOMAIN in standard SQL डोमेन एक नामित पुन: प्रयोज्य कॉलम विनिर्देश है जो डेटा प्रकार को वैकल्पिक बाधाओं (डिफ़ॉल्ट, चेक) के साथ जोड़ता है जो डोमेन को स्थिरता के लिए कई तालिकाओं में उपयोग करने की इजाजत देता है - मानक एसक्यूएल में क्रिएट डोमेन के साथ परिभाषित किया गया है C A domain is a database-level security boundary डोमेन एक डेटाबेस-स्तरीय सुरक्षा सीमा है D A domain is identical to a data type एक डोमेन एक डेटा प्रकार के समान है ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) CREATE DOMAIN EmailDomain AS VARCHAR(255) CHECK(VALUE LIKE \'%@%\'): defines a reusable domain. Tables can use: email EmailDomain. This ensures consistent type+constraints across tables. Supported in PostgreSQL; SQL Server/MySQL use user-defined types instead. व्याख्या (हिन्दी) VARCHAR(255) चेक के रूप में डोमेन ईमेलडोमेन बनाएं (\'%@%\' जैसा मान): एक पुन: प्रयोज्य डोमेन को परिभाषित करता है। तालिकाएँ उपयोग कर सकती हैं: ईमेल ईमेलडोमेन। यह तालिकाओं में सुसंगत प्रकार+बाधाएँ सुनिश्चित करता है। PostgreSQL में समर्थित; SQL सर्वर/MySQL इसके बजाय उपयोगकर्ता-परिभाषित प्रकारों का उपयोग करता है। 🎯 Exam Perspective अगर आप SSC CGL, IBPS, RRB और State-level परीक्षाओं की तैयारी कर रहे हैं, तो DBMS का यह topic आपके लिए महत्वपूर्ण है — difficulty level "Medium"। Exam में accuracy बढ़ाने के लिए हर सवाल की explanation जरूर पढ़ें। 🔗 Related Questions What is a recursive CTE (WITH RECURSIVE) in SQL and wha... What is a window function in SQL and how does it differ... What is the purpose of the GENERATED ALWAYS AS clause i... 📚 Related Topic Introduction to DBMS (639) Database Architecture (135) Data Models (138)
2080 Question 2080 EN + हिं Medium GB What is the purpose of the DEFERRABLE INITIALLY DEFERRED constraint option in SQL? IN SQL में प्रारंभिक रूप से विलंबित बाधा विकल्प का उद्देश्य क्या है? A Constraints are always enforced immediately प्रतिबंध हमेशा तुरंत लागू किए जाते हैं B Constraints are never enforced प्रतिबंध कभी भी लागू नहीं किये जाते C Constraints are checked at the end of a transaction (COMMIT) rather than after each statement allowing intermediate states to violate the constraint during a transaction बाधाओं की जाँच लेन-देन के अंत में की जाती है (COMMIT) न कि प्रत्येक कथन के बाद, जो मध्यवर्ती राज्यों को लेन-देन के दौरान बाधा का उल्लंघन करने की अनुमति देता है। D Constraints are enforced only for INSERT not UPDATE or DELETE बाधाएँ केवल INSERT के लिए लागू की जाती हैं, अद्यतन या DELETE के लिए नहीं ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Deferrable constraints: DEFERRABLE INITIALLY DEFERRED = checked only at COMMIT. DEFERRABLE INITIALLY IMMEDIATE = checked after each statement but can be deferred per-session. NOT DEFERRABLE = always immediate (default). Useful for: circular FK references, bulk loading with interdependent tables. व्याख्या (हिन्दी) आस्थगित बाधाएँ: आस्थगित प्रारंभ में आस्थगित = केवल COMMIT पर जाँच की गई। प्रारंभिक रूप से तत्काल स्थगित करने योग्य = प्रत्येक कथन के बाद जाँच की जाती है लेकिन प्रति सत्र स्थगित किया जा सकता है। टालने योग्य नहीं = सदैव तत्काल (डिफ़ॉल्ट)। इनके लिए उपयोगी: गोलाकार एफके संदर्भ, अन्योन्याश्रित तालिकाओं के साथ थोक लोडिंग। 🎯 Exam Perspective DBMS के इस प्रश्न को — difficulty level "Medium" कई प्रतियोगी परीक्षाओं जैसे UPSC, SSC, Banking और Police भर्ती में repeat होते देखा गया है। Concept clarity के लिए explanation section जरूर पढ़ें। 🔗 Related Questions What does ON DELETE CASCADE in a FOREIGN KEY constraint... What is CREATE INDEX and what is the difference between... What is the difference between ALTER TABLE MODIFY and A... 📚 Related Topic Introduction to DBMS (639) Database Architecture (135) Data Models (138)
2081 Question 2081 EN + हिं Medium GB What is CREATE INDEX and what is the difference between a unique index and a non-unique index? IN क्रिएट इंडेक्स क्या है और यूनिक इंडेक्स और नॉन-यूनिक इंडेक्स के बीच क्या अंतर है? A Non-unique indexes are always faster than unique indexes गैर-अद्वितीय सूचकांक हमेशा अद्वितीय सूचकांक की तुलना में तेज़ होते हैं B Unique indexes are created automatically; non-unique indexes must be created manually अद्वितीय अनुक्रमणिकाएँ स्वचालित रूप से बनाई जाती हैं; गैर-अद्वितीय अनुक्रमणिका मैन्युअल रूप से बनाई जानी चाहिए C All indexes are unique by default सभी अनुक्रमणिकाएँ डिफ़ॉल्ट रूप से अद्वितीय हैं D A unique index enforces that no two rows have the same indexed column values (effectively a UNIQUE constraint); a non-unique index allows duplicate values and is used purely for query performance optimization एक अद्वितीय सूचकांक यह लागू करता है कि किसी भी दो पंक्तियों में समान अनुक्रमित कॉलम मान नहीं होते हैं (प्रभावी रूप से एक अद्वितीय बाधा); एक गैर-अद्वितीय सूचकांक डुप्लिकेट मानों की अनुमति देता है और इसका उपयोग विशुद्ध रूप से क्वेरी प्रदर्शन अनुकूलन के लिए किया जाता है ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Unique index: enforces uniqueness constraint (CREATE UNIQUE INDEX) - prevents duplicate values, used for alternate keys. Non-unique index: allows duplicates, created purely for query optimization (speed up WHERE, JOIN, ORDER BY operations). Both improve query performance. व्याख्या (हिन्दी) अद्वितीय सूचकांक: विशिष्टता बाधा को लागू करता है (अद्वितीय सूचकांक बनाएं) - वैकल्पिक कुंजियों के लिए उपयोग किए जाने वाले डुप्लिकेट मानों को रोकता है। गैर-अद्वितीय सूचकांक: डुप्लिकेट की अनुमति देता है, जो पूरी तरह से क्वेरी अनुकूलन के लिए बनाया गया है (कहां गति बढ़ाएं, जुड़ें, संचालन द्वारा ऑर्डर करें)। दोनों क्वेरी प्रदर्शन में सुधार करते हैं। 🎯 Exam Perspective यह सवाल DBMS category का है — difficulty level "Medium", और Railway, SSC, Banking और Defence परीक्षाओं के exam pattern में इस तरह के questions common हैं। Answer choose करने के बाद दिया गया explanation जरूर पढ़ें। 🔗 Related Questions What is the purpose of CREATE TABLE AS SELECT (CTAS) an... What does CREATE SCHEMA do and how does it relate to CR... What is a window function in SQL and how does it differ... 📚 Related Topic Introduction to DBMS (639) Database Architecture (135) Data Models (138)
2082 Question 2082 EN + हिं Medium GB What is the purpose of the GENERATED ALWAYS AS clause in CREATE TABLE (computed columns)? IN क्रिएट टेबल (गणना किए गए कॉलम) में जेनरेटेड ऑलवेज एएस क्लॉज का उद्देश्य क्या है? A It generates random values for a column यह किसी कॉलम के लिए यादृच्छिक मान उत्पन्न करता है B It defines a column whose value is automatically computed from an expression and stored (STORED) or computed on-the-fly (VIRTUAL) cannot be manually set or updated यह एक कॉलम को परिभाषित करता है जिसका मान स्वचालित रूप से एक अभिव्यक्ति से गणना की जाती है और संग्रहीत (STORED) या ऑन-द-फ्लाई (VIRTUAL) की गणना मैन्युअल रूप से सेट या अपडेट नहीं की जा सकती है C It generates default values when INSERT does not specify the column जब INSERT कॉलम निर्दिष्ट नहीं करता है तो यह डिफ़ॉल्ट मान उत्पन्न करता है D It creates an auto-increment sequence for the column यह कॉलम के लिए एक ऑटो-इंक्रीमेंट अनुक्रम बनाता है ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Generated/computed column: CREATE TABLE t (a INT, b INT, c INT GENERATED ALWAYS AS (a+b) STORED). STORED: computed once and physically stored. VIRTUAL: computed on read, no storage. Value derived from expression, cannot be manually SET. Useful for derived attributes avoiding redundant storage. व्याख्या (हिन्दी) जनरेट किया गया/गणना किया गया कॉलम: तालिका बनाएं (a INT, b INT, c INT हमेशा (a+b) संग्रहीत के रूप में उत्पन्न होता है)। संग्रहीत: एक बार गणना की गई और भौतिक रूप से संग्रहीत। आभासी: पढ़ने पर गणना, कोई भंडारण नहीं। अभिव्यक्ति से प्राप्त मूल्य, मैन्युअल रूप से सेट नहीं किया जा सकता। अनावश्यक भंडारण से बचने के लिए व्युत्पन्न विशेषताओं के लिए उपयोगी। 🎯 Exam Perspective यह प्रश्न DBMS की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है — difficulty level "Medium"। इस तरह के प्रश्न अक्सर SSC, Railway, Banking और State PCS जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें। 🔗 Related Questions What is CREATE INDEX and what is the difference between... What does CREATE SCHEMA do and how does it relate to CR... What is the difference between ALTER TABLE MODIFY and A... 📚 Related Topic Introduction to DBMS (639) Database Architecture (135) Data Models (138)
2083 Question 2083 EN + हिं Medium GB What does CREATE SCHEMA do and how does it relate to CREATE DATABASE? IN क्रिएट स्कीमा क्या करती है और यह क्रिएट डेटाबेस से कैसे संबंधित है? A CREATE SCHEMA creates a temporary database CREATE SCHEMA एक अस्थायी डेटाबेस बनाता है B CREATE SCHEMA creates a logical namespace/grouping for database objects within a database; CREATE DATABASE creates an entirely new database instance. In some DBMS (PostgreSQL) SCHEMA is a namespace within a database; in MySQL SCHEMA and DATABASE are synonymous CREATE SCHEMA डेटाबेस के भीतर डेटाबेस ऑब्जेक्ट के लिए एक तार्किक नामस्थान/समूहन बनाता है; CREATE DATABASE एक पूरी तरह से नया डेटाबेस इंस्टेंस बनाता है। कुछ DBMS (PostgreSQL) में SCHEMA एक डेटाबेस के भीतर एक नेमस्पेस है; MySQL में SCHEMA और DATABASE पर्यायवाची हैं C CREATE SCHEMA is only for stored procedures; CREATE DATABASE for tables CREATE SCHEMA केवल संग्रहीत प्रक्रियाओं के लिए है; तालिकाओं के लिए डेटाबेस बनाएँ D They are always identical operations वे हमेशा समान संचालन होते हैं ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) PostgreSQL: CREATE DATABASE creates a new database cluster; CREATE SCHEMA creates a namespace (schema) within a database. MySQL: CREATE SCHEMA = CREATE DATABASE (synonyms). SQL Server: schemas are namespaces within a database (dbo, sales, hr). व्याख्या (हिन्दी) PostgreSQL: CREATE DATABASE एक नया डेटाबेस क्लस्टर बनाता है; CREATE SCHEMA डेटाबेस के भीतर एक नेमस्पेस (स्कीमा) बनाता है। MySQL: स्कीमा बनाएं = डेटाबेस बनाएं (समानार्थी)। SQL सर्वर: स्कीमा एक डेटाबेस (डीबीओ, बिक्री, घंटा) के भीतर नामस्थान हैं। 🎯 Exam Perspective DBMS से जुड़ा यह सवाल — difficulty level "Medium" उन students के लिए काम का है जो SSC CGL, IBPS, RRB और State-level परीक्षाओं की तैयारी कर रहे हैं। बेहतर होगा कि explanation पढ़कर concept clear करें, ताकि exam में similar प्रश्न आने पर confusion न हो। 🔗 Related Questions What does the RESTRICT option do in DROP TABLE RESTRICT... What is the purpose of the DEFERRABLE INITIALLY DEFERRE... What is the difference between a subquery and a derived... 📚 Related Topic Introduction to DBMS (639) Database Architecture (135) Data Models (138)
2084 Question 2084 EN + हिं Easy GB What is the effect of adding a NOT NULL constraint to an existing column that already contains NULL values? IN किसी मौजूदा कॉलम में NOT NULL बाधा जोड़ने का क्या प्रभाव होता है जिसमें पहले से ही NULL मान शामिल हैं? A It automatically replaces NULLs with 0 or empty string यह स्वचालित रूप से NULL को 0 या खाली स्ट्रिंग से बदल देता है B The constraint is added but only applies to new rows बाधा जोड़ी गई है लेकिन केवल नई पंक्तियों पर लागू होती है C The ALTER TABLE command fails with an error because existing NULLs would violate the constraint - you must first update NULLs to valid values before adding the NOT NULL constraint ALTER TABLE कमांड एक त्रुटि के साथ विफल हो जाता है क्योंकि मौजूदा NULLs बाधा का उल्लंघन करेंगे - आपको NOT NULL बाधा जोड़ने से पहले NULLs को मान्य मानों में अपडेट करना होगा D It silently converts NULLs to empty strings यह चुपचाप NULLs को खाली स्ट्रिंग्स में बदल देता है ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Attempting to ALTER TABLE...MODIFY col INT NOT NULL when column has existing NULLs fails in most DBMS with Cannot be null error. Solution: first UPDATE table SET col=default_value WHERE col IS NULL, then add NOT NULL constraint. व्याख्या (हिन्दी) तालिका में परिवर्तन करने का प्रयास... कॉलम में मौजूदा शून्य होने पर कॉलम को संशोधित करें INT NULL अधिकांश DBMS में शून्य नहीं हो सकता त्रुटि के साथ विफल हो जाता है। समाधान: पहले अद्यतन तालिका SET col=default_value जहाँ col शून्य है, फिर NOT NULL बाधा जोड़ें। 🎯 Exam Perspective UPSC, SSC, Banking और Police भर्ती जैसी परीक्षाओं में DBMS से सवाल अक्सर पूछे जाते हैं — difficulty level "Easy"। इसलिए सिर्फ answer रटने के बजाय, नीचे दी गई explanation को ध्यान से पढ़ें और concept समझें। 🔗 Related Questions What does CREATE SCHEMA do and how does it relate to CR... What is a SQL DOMAIN concept and how does it differ fro... What is the difference between ALTER TABLE MODIFY and A... 📚 Related Topic Introduction to DBMS (639) Database Architecture (135) Data Models (138)
2085 Question 2085 EN + हिं Easy GB What does the RESTRICT option do in DROP TABLE RESTRICT? IN ड्रॉप टेबल रेस्ट्रिक्ट में रेस्ट्रिक्ट विकल्प क्या करता है? A It restricts which users can drop the table यह प्रतिबंधित करता है कि कौन से उपयोगकर्ता तालिका को गिरा सकते हैं B It creates a restricted access table after dropping यह ड्रॉप करने के बाद एक प्रतिबंधित एक्सेस टेबल बनाता है C It restricts the number of rows deleted from the table यह तालिका से हटाई गई पंक्तियों की संख्या को प्रतिबंधित करता है D It prevents dropping the table if any other database objects depend on it (views, foreign keys, triggers) requiring dependencies to be removed first यदि कोई अन्य डेटाबेस ऑब्जेक्ट इस पर निर्भर करता है (दृश्य, विदेशी कुंजी, ट्रिगर) तो यह तालिका को छोड़ने से रोकता है, जिसके लिए पहले निर्भरता को हटाने की आवश्यकता होती है ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) DROP TABLE name RESTRICT: fails if any dependent objects exist (views referencing the table, FK constraints in other tables referencing this one, etc.). DROP TABLE name CASCADE: drops the table AND automatically drops all dependent objects. Most DBMS default to RESTRICT behavior. व्याख्या (हिन्दी) ड्रॉप टेबल नाम प्रतिबंधित: यदि कोई आश्रित ऑब्जेक्ट मौजूद है तो विफल हो जाता है (तालिका को संदर्भित करने वाले दृश्य, इसे संदर्भित करने वाली अन्य तालिकाओं में एफके बाधाएं, आदि)। ड्रॉप टेबल नाम कैस्केड: टेबल को ड्रॉप करता है और स्वचालित रूप से सभी आश्रित वस्तुओं को ड्रॉप करता है। अधिकांश DBMS व्यवहार को प्रतिबंधित करने के लिए डिफ़ॉल्ट होते हैं। 🎯 Exam Perspective अगर आप Railway, SSC, Banking और Defence परीक्षाओं की तैयारी कर रहे हैं, तो DBMS का यह topic आपके लिए महत्वपूर्ण है — difficulty level "Easy"। Exam में accuracy बढ़ाने के लिए हर सवाल की explanation जरूर पढ़ें। 🔗 Related Questions What is a SQL DOMAIN concept and how does it differ fro... What does CREATE SCHEMA do and how does it relate to CR... What is a recursive CTE (WITH RECURSIVE) in SQL and wha... 📚 Related Topic Introduction to DBMS (639) Database Architecture (135) Data Models (138)