DBMS — MCQ Practice

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

📚 144 Questions 🌐 Hindi + English ✅ Free
भाषा / Language:
144 questions
91
EN + हिं Easy
GB What is a relation scheme vs a relation instance in formal relational model terms?
IN औपचारिक संबंधपरक मॉडल के संदर्भ में संबंध योजना बनाम संबंध उदाहरण क्या है?
A
Relation scheme is the data; relation instance is the structure संबंध योजना डेटा है; संबंध उदाहरण संरचना है
B
They are the same concept वे एक ही अवधारणा हैं
C
Relation scheme applies to NoSQL; relation instance to RDBMS संबंध योजना NoSQL पर लागू होती है; आरडीबीएमएस से संबंध उदाहरण
D
Relation scheme (schema) R(A1,A2,...An) is the structural definition with attribute names and their domains; relation instance r(R) is the actual set of tuples conforming to that schema at a point in time संबंध योजना (स्कीमा) R(A1,A2,...An) विशेषता नामों और उनके डोमेन के साथ संरचनात्मक परिभाषा है; संबंध उदाहरण r(R) एक समय में उस स्कीमा के अनुरूप टुपल्स का वास्तविक सेट है
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Relation schema R(A1,...An): structural definition - attribute names, their domains, and constraints. Relation instance r(R): a concrete set of tuples (rows) at a specific time, where each tuple has one value per attribute from its domain.
व्याख्या (हिन्दी) संबंध स्कीमा R(A1,...An): संरचनात्मक परिभाषा - विशेषता नाम, उनके डोमेन और बाधाएं। संबंध उदाहरण r(R): एक विशिष्ट समय पर टुपल्स (पंक्तियों) का एक ठोस सेट, जहां प्रत्येक टुपल के पास उसके डोमेन से प्रति विशेषता एक मान होता है।
92
EN + हिं Medium
GB In relational algebra what is the difference between selection and projection?
IN संबंधपरक बीजगणित में चयन और प्रक्षेपण के बीच क्या अंतर है?
A
They perform the same operation on different axes वे अलग-अलग अक्षों पर एक ही ऑपरेशन करते हैं
B
Selection adds new rows; projection adds new columns Selection adds new rows; प्रक्षेपण नए कॉलम जोड़ता है
C
Selection filters rows based on a condition (horizontal subset); projection selects specific columns (vertical subset) potentially eliminating duplicates चयन किसी शर्त (क्षैतिज उपसमुच्चय) के आधार पर पंक्तियों को फ़िल्टर करता है; प्रक्षेपण विशिष्ट स्तंभों (ऊर्ध्वाधर उपसमुच्चय) का चयन करता है जो संभावित रूप से डुप्लिकेट को समाप्त करता है
D
Selection operates on columns; projection operates on rows चयन स्तंभों पर संचालित होता है; प्रक्षेपण पंक्तियों पर संचालित होता है
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Selection sigma_condition(R): keeps only tuples (rows) satisfying the condition - horizontal filtering. Projection pi_attributes(R): keeps only specified attributes (columns) - vertical filtering, and removes duplicate tuples from result.
व्याख्या (हिन्दी) चयन sigma_condition(R): स्थिति को संतुष्ट करने वाले केवल टुपल्स (पंक्तियाँ) रखता है - क्षैतिज फ़िल्टरिंग। प्रोजेक्शन pi_attributes(R): केवल निर्दिष्ट विशेषताएँ (कॉलम) रखता है - लंबवत फ़िल्टरिंग, और परिणाम से डुप्लिकेट टुपल्स को हटा देता है।
93
EN + हिं Easy
GB What is generalized projection operation in extended relational algebra?
IN विस्तारित संबंधपरक बीजगणित में सामान्यीकृत प्रक्षेपण संक्रिया क्या है?
A
A projection that generalizes to outer joins एक प्रक्षेपण जो बाहरी जुड़ावों को सामान्यीकृत करता है
B
A projection that allows arithmetic expressions and renaming in the projection list e.g. pi_name, salary*1.1 AS new_salary (R) एक प्रक्षेपण जो अंकगणितीय अभिव्यक्तियों और प्रक्षेपण सूची में नाम बदलने की अनुमति देता है उदा। pi_नाम, वेतन*1.1 AS new_वेतन (R)
C
A projection that works on generalized entities एक प्रक्षेपण जो सामान्यीकृत संस्थाओं पर काम करता है
D
A projection applied to all relations simultaneously एक प्रक्षेपण सभी संबंधों पर एक साथ लागू होता है
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Generalized projection extends basic projection to allow arithmetic expressions (salary*1.1), string concatenation, date functions, and aliases/renaming (AS) in the projection attribute list. This enables computed columns in the result.
व्याख्या (हिन्दी) सामान्यीकृत प्रक्षेपण, प्रक्षेपण विशेषता सूची में अंकगणितीय अभिव्यक्ति (वेतन*1.1), स्ट्रिंग संयोजन, दिनांक फ़ंक्शन और उपनाम/नामकरण (एएस) की अनुमति देने के लिए बुनियादी प्रक्षेपण का विस्तार करता है। यह परिणाम में गणना किए गए कॉलम को सक्षम बनाता है।
94
EN + हिं Easy
GB What is the aggregate function operation in extended relational algebra?
IN विस्तारित संबंधपरक बीजगणित में समग्र फ़ंक्शन ऑपरेशन क्या है?
A
Standard functions applied to entire relations मानक कार्य संपूर्ण संबंधों पर लागू होते हैं
B
A special type of join using aggregate conditions समुच्चय शर्तों का उपयोग करते हुए एक विशेष प्रकार का जुड़ाव
C
A function that combines multiple relations एक फ़ंक्शन जो अनेक संबंधों को जोड़ता है
D
gamma_grouping-attributes, aggregate-function(attribute) (R) - groups tuples by specified attributes and applies aggregate functions (COUNT, SUM, AVG, MAX, MIN) to each group equivalent to SQL GROUP BY गामा_ग्रुपिंग-एट्रिब्यूट्स, एग्रीगेट-फंक्शन (एट्रिब्यूट) (आर) - निर्दिष्ट विशेषताओं के आधार पर टुपल्स को समूहित करता है और एसक्यूएल ग्रुप बाय के बराबर प्रत्येक समूह में एग्रीगेट फ़ंक्शन (COUNT, SUM, AVG, MAX, MIN) लागू करता है।
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Aggregation operation: gamma_G; F(R) where G = grouping attributes and F = list of aggregate functions. Groups tuples by G attributes, applies F functions to each group. E.g., gamma_dept; COUNT(emp_id), AVG(salary)(Employee) gives department headcount and average salary.
व्याख्या (हिन्दी) एकत्रीकरण ऑपरेशन: गामा_जी; एफ(आर) जहां जी = समूहीकरण विशेषताएँ और एफ = समग्र कार्यों की सूची। समूह को G विशेषताओं के आधार पर ट्यूपल किया जाता है, प्रत्येक समूह पर F फ़ंक्शंस लागू किया जाता है। जैसे, गामा_डिप्ट; COUNT(emp_id), AVG(वेतन)(कर्मचारी) विभाग की कुल संख्या और औसत वेतन देता है।
95
EN + हिं Medium
GB What is data redundancy in the relational model and why is it problematic?
IN रिलेशनल मॉडल में डेटा रिडंडेंसी क्या है और यह समस्याग्रस्त क्यों है?
A
Having multiple candidate keys in a table एक तालिका में एकाधिक उम्मीदवार कुंजियाँ होना
B
Having multiple indexes on the same table एक ही टेबल पर कई इंडेक्स होना
C
Storing the same fact multiple times in different places causing wasted storage, inconsistency risk, insertion anomalies, and deletion anomalies एक ही तथ्य को अलग-अलग स्थानों पर कई बार संग्रहीत करने से व्यर्थ भंडारण, असंगतता जोखिम, सम्मिलन विसंगतियाँ और विलोपन विसंगतियाँ होती हैं
D
Having backup copies of data डेटा की बैकअप प्रतियां रखना
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Data redundancy: same information stored multiple times. Problems: (1) Storage waste, (2) Update anomaly (must update all copies), (3) Insert anomaly (cannot insert partial information), (4) Delete anomaly (deleting one fact accidentally destroys another). Normalization eliminates redundancy.
व्याख्या (हिन्दी) डेटा अतिरेक: एक ही जानकारी कई बार संग्रहीत। समस्याएँ: (1) भंडारण अपशिष्ट, (2) अद्यतन विसंगति (सभी प्रतियों को अद्यतन करना होगा), (3) विसंगति सम्मिलित करें (आंशिक जानकारी सम्मिलित नहीं कर सकते), (4) विसंगति हटाएँ (एक तथ्य को गलती से हटाने से दूसरा नष्ट हो जाता है)। सामान्यीकरण अतिरेक को समाप्त करता है।
96
EN + हिं Easy
GB What is the formal definition of referential integrity in the relational model?
IN संबंधपरक मॉडल में संदर्भात्मक अखंडता की औपचारिक परिभाषा क्या है?
A
A constraint ensuring all foreign keys are not NULL एक बाधा यह सुनिश्चित करती है कि सभी विदेशी कुंजियाँ शून्य नहीं हैं
B
A constraint that a foreign key value in a referencing relation must either be NULL or must match an existing primary key value in the referenced relation एक बाधा कि संदर्भित संबंध में एक विदेशी कुंजी मान या तो शून्य होना चाहिए या संदर्भित संबंध में मौजूदा प्राथमिक कुंजी मान से मेल खाना चाहिए
C
A constraint ensuring all primary keys are unique यह सुनिश्चित करने वाली बाधा कि सभी प्राथमिक कुंजियाँ अद्वितीय हैं
D
A constraint limiting the number of relationships between tables तालिकाओं के बीच संबंधों की संख्या को सीमित करने वाली एक बाधा
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Referential integrity: if relation R1 has FK referencing PK of R2, then for every tuple in R1, the FK value must either be NULL (if FK column is nullable) or must equal some PK value existing in R2. Prevents orphaned references.
व्याख्या (हिन्दी) संदर्भात्मक अखंडता: यदि संबंध R1 में R2 के PK को संदर्भित करने वाला FK है, तो R1 में प्रत्येक टुपल के लिए, FK मान या तो NULL होना चाहिए (यदि FK कॉलम शून्य है) या R2 में मौजूद कुछ PK मान के बराबर होना चाहिए। अनाथ संदर्भों को रोकता है।
97
EN + हिं Medium
GB What happens to the cardinality when you perform a CROSS PRODUCT of relations R (with r tuples) and S (with s tuples)?
IN जब आप संबंधों R (r टुपल्स के साथ) और S (s टुपल्स के साथ) का क्रॉस प्रोडक्ट निष्पादित करते हैं तो कार्डिनैलिटी का क्या होता है?
A
The result has r times s tuples (every tuple of R paired with every tuple of S) परिणाम में r गुना s टुपल्स हैं (R का प्रत्येक टुपल S के प्रत्येक टुपल के साथ युग्मित है)
B
The result has max(r,s) tuples परिणाम में अधिकतम(r,s) टुपल्स हैं
C
The result has r-s tuples परिणाम में r-s टुपल्स हैं
D
The result has r+s tuples परिणाम में r+s टुपल्स हैं
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Cartesian product R x S: every tuple of R is paired with every tuple of S, producing r times s tuples total. The resulting schema has all attributes of R concatenated with all attributes of S. Most joins are cross products followed by selection filtering.
व्याख्या (हिन्दी) कार्टेशियन उत्पाद आर एक्स एस: आर के प्रत्येक टुपल को एस के प्रत्येक टुपल के साथ जोड़ा जाता है, जिससे कुल आर गुना एस टुपल्स का उत्पादन होता है। परिणामी स्कीमा में R की सभी विशेषताएँ S की सभी विशेषताओं के साथ संयोजित हैं। अधिकांश जोड़ क्रॉस उत्पाद हैं जिनके बाद चयन फ़िल्टरिंग होती है।
98
EN + हिं Medium
GB What is the semi-join operation in relational algebra and why is it useful in distributed databases?
IN संबंधपरक बीजगणित में सेमी-जॉइन ऑपरेशन क्या है और यह वितरित डेटाबेस में क्यों उपयोगी है?
A
A join between two tables sharing exactly one common attribute बिल्कुल एक सामान्य विशेषता साझा करने वाली दो तालिकाओं के बीच का जुड़ाव
B
A join that only returns half the result columns एक जुड़ाव जो केवल आधे परिणाम कॉलम लौटाता है
C
R semi-join S returns only the tuples from R that have a matching tuple in S - useful in distributed databases because only tuples from S that match need to be transferred to the site holding R reducing network communication आर सेमी-जॉइन एस, आर से केवल उन टुपल्स को लौटाता है जिनके पास एस में मिलान करने वाला टुपल है - वितरित डेटाबेस में उपयोगी है क्योंकि एस से केवल टुपल्स जो मैच करते हैं उन्हें आर को नेटवर्क संचार को कम करने वाली साइट पर स्थानांतरित करने की आवश्यकता होती है
D
A join that prevents NULL values in results एक जुड़ाव जो परिणामों में NULL मानों को रोकता है
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Semi-join R semi-join S = projection_R(R joined S): returns tuples from R that have at least one match in S, keeping only R attributes. In distributed DBs: send only the projection of S on join attributes (smaller data) to R site, compute semi-join, return only qualifying R tuples.
व्याख्या (हिन्दी) सेमी-ज्वाइन आर सेमी-ज्वाइन एस = प्रोजेक्शन_आर (आर जॉइन एस): आर से टुपल्स लौटाता है जिनका एस में कम से कम एक मैच होता है, केवल आर विशेषताओं को रखते हुए। वितरित डीबी में: आर साइट पर केवल जॉइन विशेषताओं (छोटे डेटा) पर एस का प्रक्षेपण भेजें, सेमी-जॉइन की गणना करें, केवल योग्य आर टुपल्स लौटाएं।
99
EN + हिं Medium
GB What is the relational division operation and how is it used?
IN रिलेशनल डिवीजन ऑपरेशन क्या है और इसका उपयोग कैसे किया जाता है?
A
It computes modulo of column values यह कॉलम मानों के मॉड्यूलो की गणना करता है
B
It computes the arithmetic division of column values यह स्तंभ मानों के अंकगणितीय विभाजन की गणना करता है
C
Given R(A,B) and S(B) the division R / S returns tuples of R[A] that appear paired with every tuple in S - used for queries with for-all semantics such as Find employees who worked on all projects आर (ए, बी) और एस (बी) को देखते हुए डिवीजन आर / एस आर [ए] के टुपल्स लौटाता है जो एस में प्रत्येक टुपल के साथ जोड़े में दिखाई देते हैं - सभी के लिए शब्दार्थ के साथ प्रश्नों के लिए उपयोग किया जाता है जैसे कि सभी परियोजनाओं पर काम करने वाले कर्मचारियों को ढूंढें
D
It divides the relation into partitions based on a key यह संबंध को एक कुंजी के आधार पर विभाजनों में विभाजित करता है
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Relational division R/S: returns tuples t in R[A] such that for every tuple s in S, the combined tuple (t, s) appears in R. Used for: Find students enrolled in ALL required courses, Find suppliers who supply ALL parts. Implemented as: R[A] - (R[A] x S - R)[A].
व्याख्या (हिन्दी) संबंधपरक विभाजन आर/एस: आर[ए] में टुपल्स टी लौटाता है जैसे कि एस में प्रत्येक टुपल एस के लिए, संयुक्त टुपल (टी, एस) आर में दिखाई देता है। इसके लिए उपयोग किया जाता है: सभी आवश्यक पाठ्यक्रमों में नामांकित छात्रों को ढूंढें, उन आपूर्तिकर्ताओं को ढूंढें जो सभी भागों की आपूर्ति करते हैं। इस प्रकार कार्यान्वित किया गया: आर[ए] - (आर[ए] x एस - आर)[ए]।
100
EN + हिं Medium
GB What is the difference between 5NF and BCNF?
IN 5NF और BCNF के बीच क्या अंतर है?
A
5NF is weaker than BCNF 5NF BCNF से कमजोर है
B
They are identical normal forms वे समान सामान्य रूप हैं
C
BCNF eliminates all functional dependency violations; 5NF additionally eliminates join dependency violations that are not implied by candidate keys requiring a lossless decomposition into 3 or more projections बीसीएनएफ सभी कार्यात्मक निर्भरता उल्लंघनों को समाप्त करता है; 5NF अतिरिक्त रूप से जुड़ाव निर्भरता उल्लंघनों को समाप्त करता है जो कि 3 या अधिक अनुमानों में दोषरहित अपघटन की आवश्यकता वाले उम्मीदवार कुंजी द्वारा निहित नहीं हैं
D
BCNF deals with join dependencies; 5NF deals with functional dependencies बीसीएनएफ जुड़ाव निर्भरता से संबंधित है; 5NF कार्यात्मक निर्भरता से संबंधित है
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) BCNF: every non-trivial FD X to Y must have X as a superkey. 5NF/PJNF: additionally eliminates join dependencies not implied by candidate keys. A relation in BCNF may still have anomalies due to join dependencies (JD not implied by any CK), requiring further decomposition into 3+ projections.
व्याख्या (हिन्दी) बीसीएनएफ: प्रत्येक गैर-तुच्छ एफडी एक्स से वाई में सुपरकी के रूप में एक्स होना चाहिए। 5NF/PJNF: इसके अलावा उम्मीदवार कुंजी द्वारा निहित नहीं की गई जुड़ाव निर्भरता को भी समाप्त करता है। बीसीएनएफ में एक संबंध में अभी भी जुड़ाव निर्भरता (जेडी किसी सीके द्वारा निहित नहीं है) के कारण विसंगतियां हो सकती हैं, जिसके लिए 3+ अनुमानों में और विघटन की आवश्यकता होती है।
101
EN + हिं Easy
GB What is the connection between the relational model and set theory?
IN संबंधपरक मॉडल और सेट सिद्धांत के बीच क्या संबंध है?
A
The relational model only uses bag semantics not set theory रिलेशनल मॉडल केवल बैग सिमेंटिक्स का उपयोग करता है, सेट सिद्धांत का नहीं
B
The relational model only uses tuple calculus not set theory रिलेशनल मॉडल केवल ट्यूपल कैलकुलस का उपयोग करता है, सेट सिद्धांत का नहीं
C
The relational model is founded on mathematical set theory: relations are sets of tuples (no duplicates), operations (union, intersection, difference) follow set semantics and relational algebra is based on set operations संबंधपरक मॉडल गणितीय सेट सिद्धांत पर आधारित है: संबंध टुपल्स के सेट हैं (कोई डुप्लिकेट नहीं), संचालन (संघ, प्रतिच्छेदन, अंतर) सेट शब्दार्थ का पालन करते हैं और संबंधपरक बीजगणित सेट संचालन पर आधारित है
D
The relational model uses multiset (bag) semantics exclusively रिलेशनल मॉडल विशेष रूप से मल्टीसेट (बैग) शब्दार्थ का उपयोग करता है
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) The relational model (Codd 1970) is based on mathematical set theory. Relations are sets of tuples (mathematical sets, no duplicates). Relational algebra operations (union, intersection, difference, join) follow set theory. SQL uses bag semantics (allows duplicates) and uses DISTINCT to restore set semantics.
व्याख्या (हिन्दी) रिलेशनल मॉडल (कॉड 1970) गणितीय सेट सिद्धांत पर आधारित है। संबंध टुपल्स के सेट हैं (गणितीय सेट, कोई डुप्लिकेट नहीं)। संबंधपरक बीजगणित संचालन (संघ, प्रतिच्छेदन, अंतर, जुड़ाव) सेट सिद्धांत का पालन करते हैं। SQL बैग सिमेंटिक्स का उपयोग करता है (डुप्लिकेट की अनुमति देता है) और सेट सिमेंटिक्स को पुनर्स्थापित करने के लिए DISTINCT का उपयोग करता है।
102
EN + हिं Easy
GB What are Codds 12 rules and what is Rule 0 (the foundation rule)?
IN कॉड्स 12 नियम क्या हैं और नियम 0 (आधार नियम) क्या है?
A
Codds 12 rules define what constitutes a truly relational DBMS; Rule 0 (Foundation Rule): a system that claims to be a relational database management system must be able to manage databases entirely through its relational capabilities - no special non-relational mechanisms should be required कॉड्स 12 नियम परिभाषित करते हैं कि वास्तव में संबंधपरक डीबीएमएस क्या है; नियम 0 (आधार नियम): एक प्रणाली जो एक रिलेशनल डेटाबेस प्रबंधन प्रणाली होने का दावा करती है, उसे अपनी रिलेशनल क्षमताओं के माध्यम से डेटाबेस को पूरी तरह से प्रबंधित करने में सक्षम होना चाहिए - किसी विशेष गैर-रिलेशनल तंत्र की आवश्यकता नहीं होनी चाहिए
B
Rules for writing efficient SQL queries in a relational database रिलेशनल डेटाबेस में कुशल SQL क्वेरी लिखने के नियम
C
Rules for database security and access control mechanisms डेटाबेस सुरक्षा और अभिगम नियंत्रण तंत्र के लिए नियम
D
Rules defining the minimum number of tables in a relational database रिलेशनल डेटाबेस में तालिकाओं की न्यूनतम संख्या को परिभाषित करने वाले नियम
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Key Codd rules: Rule 1 (Information Rule): all data represented as values in tables. Rule 2 (Guaranteed Access): every value accessible by table+column+PK. Rule 6 (View Updating): all theoretically updatable views must be updatable. Rule 9 (Logical Data Independence): app programs unaffected by logical schema changes. No DBMS fully satisfies all 12 rules.
व्याख्या (हिन्दी) मुख्य कोड नियम: नियम 1 (सूचना नियम): सभी डेटा को तालिकाओं में मान के रूप में दर्शाया गया है। नियम 2 (गारंटीकृत पहुंच): प्रत्येक मान तालिका+कॉलम+पीके द्वारा पहुंच योग्य है। नियम 6 (दृश्य अद्यतन करना): सभी सैद्धांतिक रूप से अद्यतन करने योग्य दृश्य अद्यतन करने योग्य होने चाहिए। नियम 9 (तार्किक डेटा स्वतंत्रता): ऐप प्रोग्राम तार्किक स्कीमा परिवर्तनों से अप्रभावित रहते हैं। कोई भी DBMS सभी 12 नियमों को पूरी तरह से संतुष्ट नहीं करता है।
103
EN + हिं Medium
GB What is domain calculus in relational databases and how does it differ from tuple calculus?
IN रिलेशनल डेटाबेस में डोमेन कैलकुलस क्या है और यह टुपल कैलकुलस से कैसे भिन्न है?
A
They are performance optimization techniques for large datasets वे बड़े डेटासेट के लिए प्रदर्शन अनुकूलन तकनीक हैं
B
Two different types of SQL query optimization techniques दो अलग-अलग प्रकार की SQL क्वेरी अनुकूलन तकनीकें
C
Domain calculus is for NoSQL; tuple calculus is for relational databases only डोमेन कैलकुलस NoSQL के लिए है; टपल कैलकुलस केवल रिलेशनल डेटाबेस के लिए है
D
Both are non-procedural query languages equivalent in power to relational algebra. Tuple relational calculus: variables range over tuples (rows). Domain relational calculus: variables range over individual attribute values (domains). Both are the theoretical foundation for SQL दोनों गैर-प्रक्रियात्मक क्वेरी भाषाएं हैं जो संबंधपरक बीजगणित की शक्ति के बराबर हैं। टुपल रिलेशनल कैलकुलस: वेरिएबल टुपल्स (पंक्तियों) पर आधारित होते हैं। डोमेन रिलेशनल कैलकुलस: वैरिएबल व्यक्तिगत विशेषता मानों (डोमेन) पर आधारित होते हैं। दोनों SQL के लिए सैद्धांतिक आधार हैं
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Tuple calculus: {t | t IN Employee AND t.salary > 50000} - variable t ranges over Employee tuples. Domain calculus: {n,s | n,s IN Employee AND s > 50000} - variables n,s range over name and salary domains. QBE (Query by Example) is based on domain calculus. SQL most resembles tuple calculus. Safe expression: must produce finite results.
व्याख्या (हिन्दी) टुपल कैलकुलस: {t | t IN कर्मचारी और t.वेतन > 50000} - परिवर्तनीय t कर्मचारी टुपल्स पर होता है। डोमेन कैलकुलस: {n,s | n,s कर्मचारी और s > 50000} - नाम और वेतन डोमेन पर चर n,s की सीमा होती है। क्यूबीई (उदाहरण द्वारा क्वेरी) डोमेन कैलकुलस पर आधारित है। SQL अधिकांशतः टुपल कैलकुलस से मिलता जुलता है। सुरक्षित अभिव्यक्ति: निश्चित परिणाम देने चाहिए।
104
EN + हिं Easy
GB What is relational completeness and what does it mean for a query language?
IN संबंधपरक पूर्णता क्या है और क्वेरी भाषा के लिए इसका क्या अर्थ है?
A
A relational database that has passed all benchmark tests for completeness एक संबंधपरक डेटाबेस जिसने पूर्णता के लिए सभी बेंचमार्क परीक्षण पास कर लिए हैं
B
A query language is relationally complete if it is at least as expressive as relational algebra; i.e., it can express any query that relational algebra can express. SQL is relationally complete (and more, with aggregate functions, recursion, etc.). A language that cannot express certain relational algebra operations is not relationally complete एक क्वेरी भाषा संबंधपरक रूप से पूर्ण होती है यदि वह कम से कम संबंधपरक बीजगणित जितनी अभिव्यंजक हो; यानी, यह किसी भी प्रश्न को व्यक्त कर सकता है जिसे संबंधपरक बीजगणित व्यक्त कर सकता है। एसक्यूएल सापेक्ष रूप से पूर्ण है (और अधिक, समग्र कार्यों, रिकर्सन इत्यादि के साथ)। एक भाषा जो कुछ संबंधपरक बीजगणित परिचालनों को व्यक्त नहीं कर सकती, वह संबंधपरक रूप से पूर्ण नहीं है
C
A database that contains all possible data relationships and constraints एक डेटाबेस जिसमें सभी संभावित डेटा संबंध और बाधाएं शामिल हैं
D
A query language that can answer absolutely all possible questions एक क्वेरी भाषा जो बिल्कुल सभी संभावित प्रश्नों का उत्तर दे सकती है
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Relational completeness test: can the language express: selection (WHERE), projection (SELECT), union (UNION), difference (EXCEPT/MINUS), Cartesian product (CROSS JOIN)? If yes: relationally complete. SQL exceeds relational completeness with: aggregation (GROUP BY, SUM), recursion (WITH RECURSIVE), window functions (OVER). Simple key-value stores are NOT relationally complete.
व्याख्या (हिन्दी) संबंधपरक पूर्णता परीक्षण: क्या भाषा व्यक्त कर सकती है: चयन (कहां), प्रक्षेपण (चयन), संघ (संघ), अंतर (छोड़कर/माइनस), कार्टेशियन उत्पाद (क्रॉस जॉइन)? यदि हाँ: संबंधपरक रूप से पूर्ण। एसक्यूएल संबंधपरक पूर्णता को पार कर जाता है: एकत्रीकरण (ग्रुप बाय, एसयूएम), रिकर्सन (रिकर्सिव के साथ), विंडो फ़ंक्शन (ओवर)। सरल कुंजी-मूल्य भंडार सापेक्ष रूप से पूर्ण नहीं हैं।
105
EN + हिं Medium
GB What is query containment in relational databases and why is it important for query optimization?
IN संबंधपरक डेटाबेस में क्वेरी नियंत्रण क्या है और क्वेरी अनुकूलन के लिए यह महत्वपूर्ण क्यों है?
A
Limiting the size of query result sets to prevent resource exhaustion संसाधन की कमी को रोकने के लिए क्वेरी परिणाम सेट के आकार को सीमित करना
B
The maximum number of nested subqueries allowed in a single SQL statement एकल SQL कथन में अनुमत नेस्टेड सबक्वेरीज़ की अधिकतम संख्या
C
Checking that a query does not return more rows than the application expects यह जाँचना कि कोई क्वेरी एप्लिकेशन की अपेक्षा से अधिक पंक्तियाँ तो नहीं लौटा रही है
D
Query Q1 is contained in Q2 (Q1 <= Q2) if for every database instance D the result of Q1 on D is a subset of the result of Q2 on D; important for: query optimization (replace Q1 with cheaper equivalent Q2), semantic caching (if cached result of Q2 contains all results of Q1 use cache), and query rewriting using materialized views क्वेरी Q1, Q2 (Q1) में समाहित है
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Query equivalence (mutual containment): SELECT * FROM emp WHERE dept=5 AND salary>50K is equivalent to SELECT * FROM emp WHERE salary>50K AND dept=5 (predicate order irrelevant). Materialized view matching: SELECT dept, SUM(sales) FROM orders GROUP BY dept is contained in the MV mv_dept_sales(dept, total_sales) - optimizer can rewrite to use the MV. Query containment for conjunctive queries is NP-complete.
व्याख्या (हिन्दी) क्वेरी समतुल्यता (पारस्परिक नियंत्रण): चुनें * नियोक्ता से जहां विभाग = 5 और वेतन> 50K, चयन के बराबर है * कर्मचारियों से जहां वेतन> 50 हजार और विभाग = 5 (विधेय आदेश अप्रासंगिक)। भौतिक दृश्य मिलान: ऑर्डर ग्रुप से चयन विभाग, एसयूएम (बिक्री) ग्रुप बाय विभाग एमवी एमवी_डिप्ट_सेल्स (डिप्ट, टोटल_सेल्स) में समाहित है - ऑप्टिमाइज़र एमवी का उपयोग करने के लिए फिर से लिख सकता है। संयोजी प्रश्नों के लिए क्वेरी नियंत्रण एनपी-पूर्ण है।
91–105 of 144