Database Anomalies: Insertion, Deletion and Update Anomalies Notes in Hindi & English : डेटाबेस विसंगतियां: इंसर्शन, डिलीशन और अपडेशन एनोमलीज और 20 महत्वपूर्ण MCQ प्रश्न (Rajasthan IT Exam)

Post a Comment

PGDCA, BCA, B-Tech, MCA, M-Tech, B.Sc computer science राजस्थान सूचना सहायक व कंप्यूटर शिक्षक विशेष नोट्स: इस अध्याय में हम Database Anomalies: Insertion, Deletion and Update Anomalies (डेटाबेस विसंगतियां: इंसर्शन, डिलीशन और अपडेशन एनोमलीज) की संपूर्ण थ्योरी, मुख्य तकनीकी बिंदु, तुलनात्मक तालिका और विगत परीक्षाओं के पैटर्न पर आधारित 20 अति-महत्वपूर्ण बहुविकल्पीय प्रश्न (MCQs) विस्तृत हिंदी व अंग्रेजी व्याख्या सहित पढ़ेंगे।

Overview: Database anomalies—Insertion, Deletion, and Update anomalies—occur when a single unnormalized table mixes independent entity sets and duplicates attributes across multiple rows. Normalization resolves these structural flaws via lossless-join decomposition into distinct relations linked by Foreign Keys.

अध्याय सार: डेटाबेस एनोमलीज—इंसर्शन, डिलीशन और अपडेशन विसंगतियां—तब उत्पन्न होती हैं जब एक ही टेबल में कई अलग-अलग एंटिटीज का डेटा मिलाकर बार-बार दोहराया जाता है। नॉर्मलाइजेशन द्वारा टेबल को लॉसलेस-जॉइन और फॉरेन की के साथ विभाजित कर इन विसंगतियों को समाप्त किया जाता है।

Database Anomalies: Insertion, Deletion and Update Anomalies: Detailed Notes & Architecture (डेटाबेस विसंगतियां: इंसर्शन, डिलीशन और अपडेशन एनोमलीज)

1. Root Cause of Database Anomalies: Redundant Mixed-Entity Design (डेटाबेस विसंगतियों का मूल कारण: मिश्रित व डुप्लीकेट डेटा)

[EN] When a flat relation like StudentCourse(Sid, Sname, Cid, Cname, Instructor, Room) stores student details alongside course details in every enrollment row, data belonging to independent entities gets tightly coupled. If 40 students enroll in DBMS, the string ('DBMS', 'Dr. Mehta', 'Room 204') repeats 40 times across disk pages. This redundant coupling directly breeds Insertion, Deletion, and Update anomalies whenever rows are modified.

[HI] जब एक ही बड़ी टेबल StudentCourse(Sid, Sname, Cid, Cname, Instructor, Room) में छात्र और कोर्स दोनों की जानकारी साथ रखी जाती है, तो दो स्वतंत्र एंटिटीज आपस में बंध जाती हैं। यदि 40 छात्र एक ही कोर्स लेते हैं तो कोर्स व शिक्षक का नाम 40 बार दोहराया जाता है, जिससे इंसर्ट, डिलीट और अपडेट करते समय गंभीर डेटा विसंगतियां पैदा होती हैं।

2. Insertion Anomaly: Blocked Record Creation (इंसर्शन एनोमली (Insertion Anomaly): नया डेटा जोड़ने में बाधा)

[EN] An Insertion Anomaly arises when valid facts about one entity cannot be inserted into the table without simultaneously supplying unrelated facts about another entity. In StudentCourse with composite Primary Key (Sid, Cid), an administrator cannot register a newly launched course ('C501', 'AI', 'Dr. Rao', 'Lab-3') before any student enrolls, because leaving Sid as NULL violates the mandatory Entity Integrity constraint on Primary Keys.

[HI] इंसर्शन एनोमली तब होती है जब एक एंटिटी की सही जानकारी को बिना दूसरी असंबंधित एंटिटी के डेटा के टेबल में जोड़ना असंभव हो। उदाहरण के लिए, जब तक कोई छात्र दाखिला न ले, तब तक नया कोर्स नहीं जोड़ा जा सकता क्योंकि प्राइमरी की (Sid, Cid) का हिस्सा Sid खाली (NULL) नहीं छोड़ा जा सकता।

3. Deletion Anomaly: Unintended Data Loss (डिलीशन एनोमली (Deletion Anomaly): अनचाहे डेटा का नष्ट होना)

[EN] A Deletion Anomaly occurs when deleting a record to remove one fact accidentally destroys the only surviving record of a completely different entity. If student 'S108' is currently the sole student enrolled in 'Quantum Computing' and drops out via DELETE FROM StudentCourse WHERE Sid='S108', the entire course metadata ('Quantum Computing', instructor, and room assignment) vanishes permanently from the database.

[HI] डिलीशन एनोमली में किसी एक जानकारी को हटाने पर दूसरी उपयोगी जानकारी भी अपने आप मिट जाती है। यदि 'Quantum Computing' कोर्स में केवल एक छात्र S108 पढ़ रहा हो और उसका नामांकन रद्द किया जाए, तो उस कोर्स और उसके शिक्षक की आखिरी जानकारी भी डेटाबेस से स्थायी रूप से गायब हो जाएगी।

4. Update (Modification) Anomaly & Normalization Cure (अपडेशन एनोमली (Update Anomaly) और समाधान)

[EN] An Update Anomaly occurs when modifying one logical fact forces scanning and updating multiple redundant rows; if even one row is missed due to concurrency or partial WHERE filtering, the table enters an inconsistent state with contradictory values (e.g., Dr. Mehta shows both 'Room 204' and 'Room 310'). Systematic Normalization (2NF, 3NF, BCNF) eliminates all three anomalies by separating entities into Student(Sid, Sname), Course(Cid, Cname, Instructor, Room), and Enrollment(Sid, Cid).

[HI] अपडेशन एनोमली में किसी एक मान को बदलने के लिए अनेक डुप्लीकेट पंक्तियों को बदलना पड़ता है, और एक भी पंक्ति छूटने पर डेटा असंगत (Inconsistent) हो जाता है। इसे रोकने के लिए नॉर्मलाइजेशन द्वारा टेबल को Student, Course और Enrollment जैसी अलग-अलग टेबल्स में तोड़ा जाता है।

Syntax, Formula & Technical Example (Database Anomalies: Insertion, Deletion and Update Anomalies)

-- Unnormalized Table: PK = (Sid, Cid)
-- StudentCourse(Sid, Sname, Cid, Cname, Instructor)

-- 1. Insertion Anomaly (Fails Entity Integrity: Sid cannot be NULL):
INSERT INTO StudentCourse VALUES (NULL, NULL, 'CS401', 'Compiler', 'Dr. Sen');

-- 2. Deletion Anomaly (Drops last survivor of course 'CS401'):
DELETE FROM StudentCourse WHERE Sid = 'S105' AND Cid = 'CS401';

-- 3. Update Anomaly (Must touch N rows; partial update corrupts truth):
UPDATE StudentCourse SET Instructor = 'Dr. Verma' WHERE Cid = 'CS401';

Database Anomalies: Insertion, Deletion and Update Anomalies Quick Reference & Comparison Table

Anomaly / ConceptExact Failure MechanismPrimary Key / Integrity Impact
Insertion AnomalyCannot add new entity without unrelated entity data (PK NULL blocked)Violates Entity Integrity when composite PK part is missing
Deletion AnomalyRemoving one record unintentionally erases last copy of another entityOccurs when independent facts share a single row
Update AnomalyModifying one fact requires updating N duplicate rows or risks inconsistencyPartial update leaves contradictory attribute values
Root Cause & CureMixing multiple entities (data redundancy) cured via NormalizationDecompose into 3NF/BCNF tables with Foreign Keys

Database Anomalies: Insertion, Deletion and Update Anomalies Top 20 Bilingual MCQs with Answers

Q1. Which database anomaly happens when you cannot add a new Department into an Employee_Dept table because no employees have been hired for it yet?

(जब कर्मचारी न होने के कारण Employee_Dept टेबल में नया विभाग (Department) जोड़ना संभव न हो, तो यह कौन सी विसंगति है?)

(A) Deletion Anomaly

(B) Update Anomaly

(C) Phantom Read Anomaly

(D) Insertion Anomaly

Correct Answer: (D)

[EN] Requiring an employee ID (part of Primary Key) to store a new department blocks valid department insertion—a textbook Insertion Anomaly.

[HI] बिना कर्मचारी जोड़े नया विभाग न जोड़ पाना (क्योंकि प्राइमरी की का हिस्सा EmpID खाली नहीं हो सकता) Insertion Anomaly कहलाता है।

Q2. Deleting the last enrolled student from a flat Student_Course table unintentionally erases the course code, title, and instructor name. What anomaly is this?

(एक मिश्रित Student_Course टेबल से अंतिम छात्र का रिकॉर्ड डिलीट करने पर कोर्स और शिक्षक का विवरण भी नष्ट हो जाए, तो यह क्या है?)

(A) Modification Anomaly

(B) Insertion Anomaly

(C) Dirty Read Anomaly

(D) Deletion Anomaly

Correct Answer: (D)

[EN] Deletion Anomaly destroys unrelated secondary entity facts when the sole linking tuple is removed.

[HI] एक रिकॉर्ड हटाने के साथ दूसरे स्वतंत्र डेटा (कोर्स विवरण) का मिट जाना Deletion Anomaly है।

Q3. In an unnormalized table, changing a branch manager's phone number updates 49 out of 50 redundant rows, leaving 1 row with the old phone number. Identify this anomaly.

(यदि ब्रांच मैनेजर का फोन नंबर बदलने पर 50 में से 49 पंक्तियां अपडेट हों और 1 में पुराना नंबर रह जाए, तो यह कौन सा दोष है?)

(A) Deletion Anomaly

(B) Referential Integrity Cascade

(C) Insertion Anomaly

(D) Update (Modification) Anomaly

Correct Answer: (D)

[EN] Partial updates across duplicate records create contradictory states—the hallmark of an Update Anomaly.

[HI] डुप्लीकेट पंक्तियों में आंशिक अपडेट होने से एक ही तथ्य के दो विरोधाभासी मान दिखना Update Anomaly है।

Q4. Which SQL integrity rule directly triggers an Insertion Anomaly when an attribute belonging to a composite Primary Key is unknown?

(कंपोजिट प्राइमरी की का एक भाग अनुपस्थित होने पर कौन सा SQL नियम Insertion Anomaly को जन्म देता है?)

(A) Check Constraint

(B) Domain Range Constraint

(C) ON DELETE SET NULL

(D) Entity Integrity Constraint (NOT NULL requirement on Primary Key)

Correct Answer: (D)

[EN] Entity Integrity prohibits NULL values in any component of a Primary Key, blocking standalone insertion of the other entity.

[HI] Entity Integrity नियम प्राइमरी की के किसी भी कॉलम में NULL की अनुमति नहीं देता, जिससे अलग एंटिटी जुड़ नहीं पाती।

Q5. What is the single fundamental root cause behind Insertion, Deletion, and Update anomalies in relational tables?

(रिलेशनल टेबल्स में Insertion, Deletion और Update विसंगतियों का एकमात्र मूल कारण क्या है?)

(A) Too many Foreign Key joins

(B) Controlled absence of Normalization causing Data Redundancy and mixed entity attributes

(C) Using B-Tree indexes on Primary Keys

(D) Enforcing NOT NULL on attributes

Correct Answer: (B)

[EN] Storing facts from multiple independent entities inside one table duplicates data and creates mutual dependency anomalies.

[HI] एक ही टेबल में कई एंटिटीज को मिलाकर रखने से उत्पन्न डेटा अतिरेक (Data Redundancy) ही तीनों विसंगतियों की जड़ है।

Q6. Which process systematically eliminates Insertion, Deletion, and Update anomalies in OLTP relational databases?

(OLTP डेटाबेस में तीनों प्रकार की एनोमलीज को समाप्त करने की मानक प्रक्रिया कौन सी है?)

(A) Adding Secondary Hash Indexes

(B) Denormalization

(C) Normalization (decomposing relations to 3NF / BCNF)

(D) Horizontal Partitioning (Sharding)

Correct Answer: (C)

[EN] Decomposing mixed relations into normalized tables (2NF, 3NF, BCNF) isolates each entity so updates, inserts, and deletes remain independent.

[HI] नॉर्मलाइजेशन (3NF/BCNF तक टेबल विभाजन) प्रत्येक एंटिटी को स्वतंत्र बनाकर तीनों विसंगतियों को दूर करता है।

Q7. Suppose Table R(EmpID, EmpName, ProjID, ProjBudget) has composite PK (EmpID, ProjID) and FDs EmpID->EmpName, ProjID->ProjBudget. Which normal form violation triggers anomalies here?

(R(EmpID, EmpName, ProjID, ProjBudget) में PK=(EmpID, ProjID) है। यहाँ किस सामान्य रूप के उल्लंघन से एनोमलीज आ रही हैं?)

(A) 4NF violation only

(B) 1NF violation due to multi-valued attributes

(C) 2NF violation due to Partial Dependencies (EmpID->EmpName and ProjID->ProjBudget)

(D) No violation; table is in BCNF

Correct Answer: (C)

[EN] Both EmpName and ProjBudget depend on only half of the composite key (partial dependencies), violating 2NF and causing all three anomalies.

[HI] यहाँ EmpName व ProjBudget पूरी प्राइमरी की के बजाय उसके आधे हिस्से पर निर्भर हैं, जो 2NF का उल्लंघन है।

Q8. In Employee(EmpID, DeptID, DeptLocation), where EmpID is the single-column PK and EmpID -> DeptID -> DeptLocation holds, which anomaly happens when deleting the only employee in Dept 99?

(Employee(EmpID, DeptID, DeptLocation) में Dept 99 का एकमात्र कर्मचारी डिलीट करने पर DeptLocation भी खो जाना किस निर्भरता के कारण होता है?)

(A) Insertion Anomaly caused by Multi-Valued Dependency

(B) Update Anomaly caused by non-atomic columns

(C) Deletion Anomaly caused by Partial Dependency (2NF violation)

(D) Deletion Anomaly caused by Transitive Dependency (3NF violation)

Correct Answer: (D)

[EN] Even though the table is in 2NF (single-attribute PK), the transitive dependency EmpID -> DeptID -> DeptLocation violates 3NF and causes anomalies.

[HI] सिंगल-कॉलम PK के कारण यह 2NF में है, परंतु सकर्मक निर्भरता (EmpID->DeptID->DeptLocation) से 3NF टूटती है और एनोमली होती है।

Q9. Why might a data warehouse designer intentionally accept Update Anomalies via Denormalization?

(एक डेटा वेयरहाउस (OLAP) डिजाइनर जानबूझकर Denormalization करके अपडेशन एनोमली का जोखिम क्यों स्वीकार कर सकता है?)

(A) To avoid expensive multi-table joins and accelerate read-only analytical queries

(B) To eliminate Primary Keys completely

(C) To enforce stricter 5NF constraints

(D) Because SQL forbids Foreign Keys in analytics

Correct Answer: (A)

[EN] OLAP warehouses are mostly append-only and read-intensive; denormalizing star schemas trades write simplicity for faster analytical scans.

[HI] OLAP वेयरहाउस में डेटा मुख्यतः पढ़ने के लिए होता है; जॉइन्स घटाकर क्वेरी तेज करने हेतु नियंत्रित Denormalization किया जाता है।

Q10. Which statement is NOT true regarding Database Anomalies?

(डेटाबेस एनोमलीज के संबंध में निम्नलिखित में से कौन सा कथन असत्य (NOT true) है?)

(A) Update anomalies lead to inconsistent/contradictory database states

(B) Splitting Student_Course into Student, Course, and Enrollment removes Insertion Anomaly

(C) A table in 1NF can still suffer severely from Insertion and Deletion anomalies

(D) Adding more secondary indexes on redundant columns completely eliminates Update Anomalies

Correct Answer: (D)

[EN] Indexes speed up lookups (and can even slow updates further), but never remove logical redundancy or update anomalies—only normalization does.

[HI] रिडंडेंट कॉलम्स पर इंडेक्स लगाने से अपडेशन एनोमली खत्म नहीं होती (बल्कि राइटिंग और धीमी हो जाती है); इसके लिए नॉर्मलाइजेशन आवश्यक है।

Q11. After decomposing StudentCourse(Sid, Sname, Cid, Cname) into Student(Sid, Sname), Course(Cid, Cname), and Enrolled(Sid, Cid), how do you add a new course with zero students?

(टेबल को Student, Course और Enrolled में बांटने के बाद बिना किसी छात्र के नया कोर्स कैसे जोड़ा जा सकता है?)

(A) Wait until the first student registers

(B) Insert NULL into Enrolled.Sid

(C) Insert directly into Course(Cid, Cname) without touching Enrolled or Student

(D) Create a dummy student named 'TEMP'

Correct Answer: (C)

[EN] Isolating Course into its own relation lets courses exist independently regardless of enrollment tuples.

[HI] Course के अलग टेबल बनने से बिना किसी छात्र के सीधे Course टेबल में नया कोर्स जोड़ा जा सकता है।

Q12. Which anomaly directly threatens logical data consistency (two rows disagreeing on the same attribute value) rather than merely blocking an operation?

(कौन सी विसंगति किसी ऑपरेशन को रोकने के बजाय सीधे डेटा की तार्किक संगति (Consistency) को खतरे में डालती है?)

(A) Deletion Anomaly

(B) Update Anomaly

(C) Insertion Anomaly

(D) Nullability Anomaly

Correct Answer: (B)

[EN] Insertion blocks adds and Deletion loses data, whereas partial Update leaves conflicting values for the exact same fact across rows.

[HI] Insertion डेटा जोड़ने से रोकता है और Deletion डेटा मिटाता है, जबकि Update विसंगति एक ही तथ्य के दो गलत/अलग मान छोड़ देती है।

Q13. Can a relation with only ONE tuple at runtime still exhibit structural Insertion and Deletion anomalies?

(क्या किसी टेबल में वर्तमान में केवल 1 पंक्ति होने पर भी उसमें डिज़ाइन-स्तर की Insertion और Deletion एनोमली मौजूद हो सकती है?)

(A) Yes — anomalies are schema-level defects determined by FDs, not just current row count

(B) Anomalies disappear if table size < 10

(C) No — anomalies require at least 2 duplicate rows

(D) Only Update Anomaly exists with 1 row

Correct Answer: (A)

[EN] Even with 0 or 1 rows, a bad schema still prevents inserting a standalone Course (Insertion) or deletes the only Course when deleting that 1 row (Deletion).

[HI] हाँ — एनोमली टेबल की स्कीमा (डिज़ाइन) का दोष है; 1 पंक्ति होने पर भी बिना छात्र के कोर्स जुड़ नहीं सकता और 1 पंक्ति हटते ही कोर्स मिट जाएगा।

Q14. If a table is fully normalized into BCNF (assuming no Multi-Valued Dependencies exist), how many of Insertion, Deletion, and Update anomalies remain?

(यदि किसी टेबल को पूरी तरह BCNF में नॉर्मलाइज कर दिया जाए (और कोई MVD न हो), तो कितनी एनोमलीज शेष बचती हैं?)

(A) Insertion and Deletion remain

(B) Only Update Anomaly remains

(C) Zero — BCNF eliminates all FD-driven redundancy and anomalies

(D) All three multiply

Correct Answer: (C)

[EN] BCNF guarantees every non-trivial FD determinant is a superkey, completely eliminating FD-induced redundancy and its anomalies.

[HI] शून्य — BCNF में प्रत्येक नॉन-ट्रिवियल FD का डिटर्मिनेंट सुपर की होता है, जिससे FD-जनित तीनों एनोमलीज समाप्त हो जाती हैं।

Q15. In SQL, how can ON DELETE CASCADE on a Foreign Key accidentally simulate a Deletion Anomaly if configured carelessly?

(SQL में Foreign Key पर ON DELETE CASCADE गलत ढंग से लगाने पर किस तरह नुकसान हो सकता है?)

(A) Deleting a parent record automatically wipes out dependent child records (e.g., deleting a Customer deletes historical Invoices)

(B) It prevents inserting any child records

(C) It drops the entire database schema

(D) It duplicates parent names across rows

Correct Answer: (A)

[EN] While referential cascade prevents orphan rows, applying CASCADE instead of RESTRICT on financial history causes unintended deletion of vital child records.

[HI] यदि ऐतिहासिक बिल/ऑर्डर वाली चाइल्ड टेबल पर ON DELETE CASCADE लगा हो, तो पैरेंट हटते ही महत्वपूर्ण रिकॉर्ड्स स्वतः डिलीट हो सकते हैं।

Q16. Which normal form specifically resolves anomalies caused when an unnormalized cell holds comma-separated lists like 'Java, Python, SQL'?

(यदि एक ही सेल में 'Java, Python, SQL' जैसे कई मान कॉमा लगाकर भरे जाएं, तो इस संरचनात्मक विसंगति को कौन सा नॉर्मल फॉर्म सुधारता है?)

(A) Second Normal Form (2NF)

(B) Third Normal Form (3NF)

(C) First Normal Form (1NF)

(D) BCNF

Correct Answer: (C)

[EN] Multi-valued non-atomic cells violate 1NF before 2NF/3NF/BCNF rules can even be evaluated.

[HI] एक सेल में एक से अधिक मान रखना 1NF का उल्लंघन है, जिसे सबसे पहले 1NF द्वारा ठीक किया जाता है।

Q17. Within Database Anomalies: Insertion, Deletion and Update Anomalies, which anomaly / concept directly maps to: "Cannot add new entity without unrelated entity data (PK NULL blocked)"?

(Database Anomalies: Insertion, Deletion and Update Anomalies में कौन सा Anomaly / Concept सीधे "Cannot add new entity without unrelated entity data (PK NULL blocked)" से संबंधित है?)

(A) Root Cause & Cure

(B) Update Anomaly

(C) Insertion Anomaly

(D) Deletion Anomaly

Correct Answer: (C)

[EN] In Database Anomalies: Insertion, Deletion and Update Anomalies, 'Insertion Anomaly' handles 'Cannot add new entity without unrelated entity data (PK NULL blocked)' (Violates Entity Integrity when composite PK part is missing).

[HI] Database Anomalies: Insertion, Deletion and Update Anomalies में 'Insertion Anomaly' का कार्य/विवरण 'Cannot add new entity without unrelated entity data (PK NULL blocked)' (Violates Entity Integrity when composite PK part is missing) है।

Q18. Which option accurately describes 'Deletion Anomaly' in Database Anomalies: Insertion, Deletion and Update Anomalies?

(Database Anomalies: Insertion, Deletion and Update Anomalies के संदर्भ में 'Deletion Anomaly' की सही विशेषता कौन सी है?)

(A) Mixing multiple entities (data redundancy) cured via Normalization

(B) Modifying one fact requires updating N duplicate rows or risks inconsistency

(C) Cannot add new entity without unrelated entity data (PK NULL blocked)

(D) Removing one record unintentionally erases last copy of another entity

Correct Answer: (D)

[EN] 'Deletion Anomaly' provides 'Removing one record unintentionally erases last copy of another entity' — key point: Occurs when independent facts share a single row.

[HI] 'Deletion Anomaly' का मुख्य विवरण 'Removing one record unintentionally erases last copy of another entity' है (Occurs when independent facts share a single row)।

Q19. In Database Anomalies: Insertion, Deletion and Update Anomalies, identify the correct parameter for the specification: "Modifying one fact requires updating N duplicate rows or risks inconsistency".

(Database Anomalies: Insertion, Deletion and Update Anomalies में "Modifying one fact requires updating N duplicate rows or risks inconsistency" विवरण किस विकल्प के लिए सही है?)

(A) Insertion Anomaly

(B) Deletion Anomaly

(C) Root Cause & Cure

(D) Update Anomaly

Correct Answer: (D)

[EN] 'Update Anomaly' corresponds to 'Modifying one fact requires updating N duplicate rows or risks inconsistency' (Partial update leaves contradictory attribute values).

[HI] 'Update Anomaly' का संबंध 'Modifying one fact requires updating N duplicate rows or risks inconsistency' (Partial update leaves contradictory attribute values) से है।

Q20. Considering Database Anomalies: Insertion, Deletion and Update Anomalies, what key behavior defines 'Root Cause & Cure'?

(Database Anomalies: Insertion, Deletion and Update Anomalies में 'Root Cause & Cure' की मुख्य भूमिका या मान क्या है?)

(A) Mixing multiple entities (data redundancy) cured via Normalization

(B) Removing one record unintentionally erases last copy of another entity

(C) Cannot add new entity without unrelated entity data (PK NULL blocked)

(D) Modifying one fact requires updating N duplicate rows or risks inconsistency

Correct Answer: (A)

[EN] 'Root Cause & Cure' represents 'Mixing multiple entities (data redundancy) cured via Normalization' (Decompose into 3NF/BCNF tables with Foreign Keys).

[HI] 'Root Cause & Cure' का अर्थ/मान 'Mixing multiple entities (data redundancy) cured via Normalization' है (Decompose into 3NF/BCNF tables with Foreign Keys)।

Database Anomalies: Insertion, Deletion and Update Anomalies — Exam FAQs

Q1: Are Insertion, Deletion, and Update anomalies caused by hardware/SQL bugs or schema design flaws?

क्या डेटाबेस एनोमलीज सॉफ्टवेयर बग हैं या टेबल डिज़ाइन की गलतियाँ?

[EN] They are pure logical schema-design flaws resulting from combining independent entities into an unnormalized table, not SQL engine bugs.

[HI] ये SQL सॉफ्टवेयर के बग नहीं हैं, बल्कि गलत टेबल डिज़ाइन (एक टेबल में कई एंटिटीज मिलाने) से उत्पन्न तार्किक दोष हैं।

Q2: Can a relation be in 2NF and still suffer from Insertion, Deletion, and Update anomalies?

क्या 2NF में मौजूद कोई टेबल भी एनोमलीज से ग्रस्त हो सकती है?

[EN] Yes! A 2NF table with a transitive dependency (like EmpID -> DeptID -> DeptCity) still duplicates DeptCity for every employee in that department, causing all three anomalies.

[HI] हाँ! यदि 2NF टेबल में सकर्मक निर्भरता (Transitive Dependency) हो, जैसे EmpID -> DeptID -> DeptCity, तो हर कर्मचारी के साथ शहर बार-बार दोहराया जाएगा और तीनों एनोमलीज बनी रहेंगी।

Q3: How do you immediately identify an Update Anomaly in a viva or exam scenario?

परीक्षा के प्रश्न में Update Anomaly को तुरंत कैसे पहचानें?

[EN] Look for scenarios where changing a single attribute (like manager name or office address) requires updating multiple rows and risks inconsistent conflicting values if one row is missed.

[HI] जहाँ एक ही जानकारी बदलने के लिए कई पंक्तियों में बदलाव करना पड़े और आधी पंक्तियाँ अपडेट न होने पर गलत/विरोधाभासी डेटा बनने का खतरा हो, वहाँ Update Anomaly होती है।

Related Posts

  • Loading related posts...

Post a Comment

Search Topic Notes & 20 MCQs (Hindi / English)