Which operation is used to change the values of one or more attributes in a…

2024

Which operation is used to change the values of one or more attributes in a tuple (or tuples) of some relation R?

  1. A.

    Update

  2. B.

    Delete

  3. C.

    Select

  4. D.

    Where

Attempted by 960 students.

Show answer & explanation

Correct answer: A

Correct Answer: Update

The correct operation to change the values of one or more attributes in a tuple (or tuples) of a relation R is the Update operation.

In relational database management systems, the Update operation allows users to modify specific data values within existing records (tuples) without deleting the entire record. This is essential for maintaining current and accurate data in a database.

Analysis of Other Options

Delete: This operation removes entire tuples from the relation, not just specific attribute values.

Select: This operation retrieves specific tuples based on conditions but does not modify any data.

Where: This is a clause used in queries to filter results, not a standalone operation for data modification.

हिन्दी उत्तर: सही विकल्प

सही उत्तर: Update (अद्यतन)

रिलेशनल डेटाबेस प्रबंधन प्रणालियों में, Update ऑपरेशन उपयोगकर्ताओं को मौजूदा रिकॉर्ड (टपल्स) के भीतर विशिष्ट डेटा मानों को संशोधित करने की अनुमति देता है, बिना पूरे रिकॉर्ड को हटाए।

विकल्पों का विश्लेषण:

Delete: यह ऑपरेशन पूरे टपल्स को रिलेशन से हटाता है, न कि केवल विशिष्ट एट्रीब्यूट मानों को।

Select: यह ऑपरेशन शर्तों के आधार पर विशिष्ट टपल्स को पुनः प्राप्त करता है लेकिन किसी भी डेटा को संशोधित नहीं करता है।

Where: यह क्वेरी में परिणामों को फ़िल्टर करने के लिए उपयोग किया जाने वाला एक क्लॉज है, डेटा संशोधन के लिए एक अकेला ऑपरेशन नहीं।

Explore the full course: Hpsc Pgt Computer Science