DBMS — MCQ Practice

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

📚 2982 Questions 🌐 Hindi + English ✅ Free
भाषा / Language:
2982 questions
1426
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): एक विशिष्ट समय पर टुपल्स (पंक्तियों) का एक ठोस सेट, जहां प्रत्येक टुपल के पास उसके डोमेन से प्रति विशेषता एक मान होता है।
1427
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): केवल निर्दिष्ट विशेषताएँ (कॉलम) रखता है - लंबवत फ़िल्टरिंग, और परिणाम से डुप्लिकेट टुपल्स को हटा देता है।
1428
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), स्ट्रिंग संयोजन, दिनांक फ़ंक्शन और उपनाम/नामकरण (एएस) की अनुमति देने के लिए बुनियादी प्रक्षेपण का विस्तार करता है। यह परिणाम में गणना किए गए कॉलम को सक्षम बनाता है।
1429
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(वेतन)(कर्मचारी) विभाग की कुल संख्या और औसत वेतन देता है।
1430
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) विसंगति हटाएँ (एक तथ्य को गलती से हटाने से दूसरा नष्ट हो जाता है)। सामान्यीकरण अतिरेक को समाप्त करता है।
1431
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 मान के बराबर होना चाहिए। अनाथ संदर्भों को रोकता है।
1432
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 की सभी विशेषताओं के साथ संयोजित हैं। अधिकांश जोड़ क्रॉस उत्पाद हैं जिनके बाद चयन फ़िल्टरिंग होती है।
1433
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.
व्याख्या (हिन्दी) सेमी-ज्वाइन आर सेमी-ज्वाइन एस = प्रोजेक्शन_आर (आर जॉइन एस): आर से टुपल्स लौटाता है जिनका एस में कम से कम एक मैच होता है, केवल आर विशेषताओं को रखते हुए। वितरित डीबी में: आर साइट पर केवल जॉइन विशेषताओं (छोटे डेटा) पर एस का प्रक्षेपण भेजें, सेमी-जॉइन की गणना करें, केवल योग्य आर टुपल्स लौटाएं।
1434
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 एस - आर)[ए]।
1435
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+ अनुमानों में और विघटन की आवश्यकता होती है।
1436
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 का उपयोग करता है।
1437
EN + हिं Medium
GB Which correctly distinguishes hierarchical from network data model?
IN कौन सा नेटवर्क डेटा मॉडल से पदानुक्रमित को सही ढंग से अलग करता है?
A
Hierarchical allows only one parent per record (tree); network allows multiple parents (graph structure) पदानुक्रमित प्रति रिकॉर्ड (वृक्ष) केवल एक अभिभावक को अनुमति देता है; नेटवर्क एकाधिक अभिभावकों को अनुमति देता है (ग्राफ़ संरचना)
B
Network allows only one parent; hierarchical allows multiple नेटवर्क केवल एक अभिभावक को अनुमति देता है; पदानुक्रमित एकाधिक की अनुमति देता है
C
Hierarchical uses SQL; network uses different language पदानुक्रमित SQL का उपयोग करता है; नेटवर्क भिन्न भाषा का उपयोग करता है
D
They are identical वे समान हैं
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Hierarchical model: tree structure where each child has exactly one parent. Network model (CODASYL): graph structure where a child record can have multiple parents. Network model overcomes the hierarchical model single-parent limitation.
व्याख्या (हिन्दी) पदानुक्रमित मॉडल: वृक्ष संरचना जहां प्रत्येक बच्चे के पास बिल्कुल एक माता-पिता होते हैं। नेटवर्क मॉडल (CODASYL): ग्राफ संरचना जहां एक बच्चे के रिकॉर्ड में कई माता-पिता हो सकते हैं। नेटवर्क मॉडल पदानुक्रमित मॉडल एकल-अभिभावक सीमा पर काबू पाता है।
1438
EN + हिं Medium
GB A relation R(A,B,C,D) with FDs A to B, B to C, A to D is in which normal form?
IN एफडी ए से बी, बी से सी, ए से डी के साथ एक संबंध आर (ए, बी, सी, डी) किस सामान्य रूप में है?
A
Already in BCNF पहले से ही बीसीएनएफ में
B
2NF but not 3NF because B to C creates a transitive dependency 2NF लेकिन 3NF नहीं क्योंकि B से C एक सकर्मक निर्भरता बनाता है
C
1NF only केवल 1NF
D
3NF but not BCNF 3NF लेकिन BCNF नहीं
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Primary key is A. A to B, A to D are direct. B to C: B is not a candidate key and C is not a prime attribute. So B to C is a transitive dependency violating 3NF. The relation is in 2NF (no partial dependencies since PK is simple) but not 3NF.
व्याख्या (हिन्दी) प्राथमिक कुंजी A है। A से B, A से D प्रत्यक्ष हैं। बी से सी: बी उम्मीदवार कुंजी नहीं है और सी एक प्रमुख विशेषता नहीं है। तो B से C 3NF का उल्लंघन करने वाली एक सकर्मक निर्भरता है। संबंध 2NF में है (कोई आंशिक निर्भरता नहीं क्योंकि PK सरल है) लेकिन 3NF में नहीं।
1439
EN + हिं Easy
GB What is partial dependency and in which normal form is it eliminated?
IN आंशिक निर्भरता क्या है और इसे किस सामान्य रूप में समाप्त किया जाता है?
A
A partial functional dependency between two non-key attributes दो गैर-कुंजी विशेषताओं के बीच आंशिक कार्यात्मक निर्भरता
B
A functional dependency of a non-prime attribute on a PROPER SUBSET of a candidate key (occurs only when candidate key is composite); eliminated by achieving 2NF उम्मीदवार कुंजी के उचित उपसमूह पर एक गैर-प्रमुख विशेषता की कार्यात्मक निर्भरता (केवल तब होती है जब उम्मीदवार कुंजी समग्र होती है); 2NF प्राप्त करके समाप्त कर दिया गया
C
A dependency where Y depends on part of X एक निर्भरता जहां Y, X के भाग पर निर्भर करता है
D
A dependency where only part of the FD holds एक निर्भरता जहां एफडी का केवल एक हिस्सा ही रहता है
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Partial dependency: non-prime attribute Y depends on a proper subset of the candidate key (not the full key). Only possible when candidate key is composite. Example: in (StudentID, CourseID) to Grade,StudentName - StudentName depends only on StudentID (partial). 2NF eliminates this.
व्याख्या (हिन्दी) आंशिक निर्भरता: गैर-प्रमुख विशेषता Y उम्मीदवार कुंजी के उचित उपसमूह पर निर्भर करती है (पूर्ण कुंजी नहीं)। केवल तभी संभव है जब उम्मीदवार कुंजी समग्र हो। उदाहरण: (स्टूडेंटआईडी, कोर्सआईडी) से ग्रेड, स्टूडेंटनाम तक - स्टूडेंटनाम केवल स्टूडेंटआईडी (आंशिक) पर निर्भर करता है। 2NF इसे ख़त्म करता है।
1440
EN + हिं Medium
GB Consider R(EmpID,EmpName,DeptID,DeptName,Salary) with EmpID to EmpName,DeptID,Salary and DeptID to DeptName. What violation exists?
IN EmpID से EmpName, DeptID, वेतन और DeptID से DeptName के साथ R(EmpID,EmpName,DeptID,DeptName,Salary) पर विचार करें। क्या उल्लंघन मौजूद है?
A
The relation is in 1NF only संबंध केवल 1NF में है
B
No violation; it is in BCNF कोई उल्लंघन नहीं; यह बीसीएनएफ में है
C
Partial dependency violates 2NF; decompose into R1(EmpID,EmpName,Salary) and R2(DeptID,DeptName) आंशिक निर्भरता 2NF का उल्लंघन करती है; R1(EmpID,EmpName,वेतन) और R2(DeptID,DeptName) में विघटित करें
D
Transitive dependency DeptID to DeptName violates 3NF; decompose into R1(EmpID,EmpName,DeptID,Salary) and R2(DeptID,DeptName) DeptName पर ट्रांजिटिव निर्भरता DeptID 3NF का उल्लंघन करती है; R1(EmpID,EmpName,DeptID,वेतन) और R2(DeptID,DeptName) में विघटित करें
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) EmpID is the primary key. DeptID to DeptName: DeptID is not a superkey, DeptName is not a prime attribute. This is a transitive FD (EmpID to DeptID to DeptName) violating 3NF. Fix: R1(EmpID, EmpName, DeptID, Salary) and R2(DeptID, DeptName).
व्याख्या (हिन्दी) EmpID प्राथमिक कुंजी है. DeptID से DeptName: DeptID एक सुपरकी नहीं है, DeptName एक प्रमुख विशेषता नहीं है। यह 3NF का उल्लंघन करने वाली एक सकर्मक FD (EmpID से DeptID से DeptName) है। ठीक करें: R1(EmpID, EmpName, DeptID, Salary) और R2(DeptID, DeptName)।
1426–1440 of 2982