Question
Option 2 : The view is not updatable because it contains aggregation and grouping, so the DBMS cannot map the new row to base-table rows / यह व्यू अपडेयटेबल नहीं है क्योंकि इसमें समूहीकरण और योग है, अतः DBMS नई पंक्ति को बेस-टेबल पंक्तियों से नहीं जोड़ सकता
Detailed Solution
सही उत्तर The view is not updatable because it contains aggregation and grouping, so the DBMS cannot map the new row to base-table rows / यह व्यू अपडेयटेबल नहीं है क्योंकि इसमें समूहीकरण और योग है, अतः DBMS नई पंक्ति को बेस-टेबल पंक्तियों से नहीं जोड़ सकता है।
Question:
A view SalesSummary is defined as SELECT region, SUM(amount) AS total FROM sales GROUP BY region. An INSERT issued through this view fails. What is the correct explanation? / एक व्यू SalesSummary को SELECT region, SUM(amount) AS total FROM sales GROUP BY region के रूप में परिभाषित किया गया है। इस व्यू के माध्यम से दिया गया INSERT विफल हो जाता है। सही व्याख्या क्या है?
Correct Answer: The view is not updatable because it contains aggregation and grouping, so the DBMS cannot map the new row to base-table rows / यह व्यू अपडेयटेबल नहीं है क्योंकि इसमें समूहीकरण और योग है, अतः DBMS नई पंक्ति को बेस-टेबल पंक्तियों से नहीं जोड़ सकता
Views involving JOIN, GROUP BY, aggregates or DISTINCT are generally non-updatable; the engine cannot determine which base rows an inserted or modified view row corresponds to. / JOIN, GROUP BY, एग्रीगेट या DISTINCT वाले व्यू सामान्यतः गैर-अपडेयटेबल होते हैं; इंजन यह तय नहीं कर पाता कि डाली गई पंक्ति किन बेस पंक्तियों से मेल खाती है।