331 Database Management Systems • Foreign Keys फॉरेन की का प्रमुख उपयोग क्या है? What is the main use of a foreign key? A. हर तालिका को पासवर्ड देना To assign a password to every table B. सभी रिकॉर्डों को क्रमांक देना To number all records C. स्तंभों की चौड़ाई निर्धारित करना To determine column widths D. संदर्भित कुंजी से संबंध और डेटा की संदर्भीय अखंडता बनाए रखना To maintain a relationship with a referenced key and enforce referential integrity उत्तर और व्याख्या देखें Show answer and explanation सही उत्तर: D Correct Answer: D फॉरेन की किसी संदर्भित प्राइमरी या अद्वितीय कुंजी से संबंध बनाती है। यह संबंधित रिकॉर्डों के बीच अमान्य संदर्भ रोकने में सहायता करती है। A foreign key references a primary or unique key. It helps prevent invalid references between related records.
332 Database Management Systems • Data Redundancy एक ही तथ्य का अनावश्यक रूप से कई स्थानों पर संग्रहीत होना क्या कहलाता है? What is the unnecessary storage of the same fact in multiple places called? A. डेटा स्वतंत्रता Data independence B. डेटा एन्क्रिप्शन Data encryption C. डेटा रिडंडेंसी Data redundancy D. डेटा वैलिडेशन Data validation उत्तर और व्याख्या देखें Show answer and explanation सही उत्तर: C Correct Answer: C डेटा रिडंडेंसी अनावश्यक दोहराव है। अलग-अलग प्रतियों में असंगत बदलाव होने पर डेटा में विरोधाभास पैदा हो सकता है। Data redundancy is unnecessary duplication. Inconsistent changes to different copies can create conflicting data.
333 Database Management Systems • Normalisation डेटाबेस नॉर्मलाइजेशन का प्रमुख उद्देश्य क्या है? What is a major purpose of database normalisation? A. सभी तालिकाओं को एक बड़ी तालिका में बदलना To combine all tables into one large table B. अनावश्यक दोहराव और अद्यतन संबंधी विसंगतियाँ कम करना To reduce unnecessary duplication and update anomalies C. हर फील्ड को चित्र में बदलना To convert every field into an image D. सभी कुंजियाँ हटाना To remove all keys उत्तर और व्याख्या देखें Show answer and explanation सही उत्तर: B Correct Answer: B नॉर्मलाइजेशन निर्भरताओं के आधार पर तालिकाओं को व्यवस्थित करता है। इससे डेटा दोहराव और जोड़ने, बदलने या हटाने से जुड़ी विसंगतियाँ कम हो सकती हैं। Normalisation organises tables according to dependencies. It can reduce duplication and anomalies related to inserting, updating or deleting data.
334 Database Management Systems • SQL Basics SQL का सही पूर्ण रूप क्या है? What is the correct expansion of SQL? A. Structured Query Language Structured Query Language B. System Queue Language System Queue Language C. Standard Quick Logic Standard Quick Logic D. Sequential Query Link Sequential Query Link उत्तर और व्याख्या देखें Show answer and explanation सही उत्तर: A Correct Answer: A SQL का अर्थ Structured Query Language है। इसका उपयोग रिलेशनल डेटाबेस में डेटा प्राप्त करने, बदलने और संरचनाएँ परिभाषित करने में होता है। SQL stands for Structured Query Language. It is used to retrieve and modify data and define structures in relational databases.
335 Database Management Systems • SQL Statements SQL में तालिका से डेटा प्राप्त करने के लिए कौन-सा कथन उपयोग होता है? Which SQL statement is used to retrieve data from a table? A. UPDATE UPDATE B. INSERT INSERT C. SELECT SELECT D. DELETE DELETE उत्तर और व्याख्या देखें Show answer and explanation सही उत्तर: C Correct Answer: C SELECT डेटाबेस से डेटा प्राप्त करता है। चुने गए स्तंभों और शर्तों के आधार पर परिणाम बनाया जा सकता है। SELECT retrieves data from a database. Results can be based on selected columns and specified conditions.
336 Database Management Systems • SQL Statements SQL में नया रिकॉर्ड जोड़ने के लिए कौन-सा कथन उपयोग होता है? Which SQL statement is used to add a new record? A. ALTER TABLE ALTER TABLE B. UPDATE UPDATE C. SELECT SELECT D. INSERT INTO INSERT INTO उत्तर और व्याख्या देखें Show answer and explanation सही उत्तर: D Correct Answer: D INSERT INTO तालिका में नई पंक्ति जोड़ता है। UPDATE मौजूदा पंक्ति के मान बदलता है। INSERT INTO adds a new row to a table. UPDATE changes values in existing rows.
337 Database Management Systems • SQL Statements SQL में मौजूदा रिकॉर्ड के मान बदलने के लिए कौन-सा कथन उपयोग होता है? Which SQL statement is used to change values in an existing record? A. UPDATE UPDATE B. CREATE TABLE CREATE TABLE C. INSERT INTO INSERT INTO D. DROP TABLE DROP TABLE उत्तर और व्याख्या देखें Show answer and explanation सही उत्तर: A Correct Answer: A UPDATE मौजूदा रिकॉर्ड बदलता है। इच्छित पंक्तियाँ चुनने के लिए सामान्यतः WHERE लगाया जाता है; उसके बिना सभी पंक्तियाँ प्रभावित हो सकती हैं। UPDATE modifies existing records. WHERE is generally used to target intended rows; without it, all rows can be affected.
338 Database Management Systems • Filtering Data SQL में SELECT द्वारा केवल निर्धारित शर्त से मेल खाने वाली पंक्तियाँ चुनने के लिए कौन-सा क्लॉज उपयोग होता है? Which clause filters rows returned by an SQL SELECT statement according to a specified condition? A. ORDER BY ORDER BY B. GROUP BY GROUP BY C. WHERE WHERE D. FROM FROM उत्तर और व्याख्या देखें Show answer and explanation सही उत्तर: C Correct Answer: C WHERE पंक्तियों पर शर्त लागू करता है। उदाहरणतः Marks >= 40 शर्त कम से कम 40 अंक वाले रिकॉर्ड चुनती है। WHERE applies a condition to rows. For example, Marks >= 40 selects records with marks of at least 40.
339 Database Management Systems • Sorting Data SQL में परिणाम को किसी स्तंभ के अनुसार क्रमबद्ध करने के लिए कौन-सा क्लॉज उपयोग होता है? Which SQL clause sorts query results according to a column? A. WHERE WHERE B. ORDER BY ORDER BY C. GROUP BY GROUP BY D. HAVING HAVING उत्तर और व्याख्या देखें Show answer and explanation सही उत्तर: B Correct Answer: B ORDER BY परिणामों को क्रमबद्ध करता है। ASC आरोही और DESC अवरोही क्रम दर्शाते हैं। ORDER BY sorts query results. ASC specifies ascending order and DESC specifies descending order.
340 Database Management Systems • Aggregate Functions SQL में COUNT(*) क्या गिनता है? What does COUNT(*) count in SQL? A. केवल पाठ वाले सेल Only cells containing text B. केवल अद्वितीय स्तंभ Only unique columns C. केवल गैर-NULL संख्यात्मक मान Only non-NULL numeric values D. संबंधित परिणाम या समूह की सभी पंक्तियाँ All rows in the relevant result or group उत्तर और व्याख्या देखें Show answer and explanation सही उत्तर: D Correct Answer: D COUNT(*) पंक्तियाँ गिनता है, भले ही उनमें किसी स्तंभ का मान NULL हो। COUNT(ColumnName) उस स्तंभ के गैर-NULL मान गिनता है। COUNT(*) counts rows even when a column contains NULL. COUNT(ColumnName) counts non-NULL values in that column.