Question
CREATE OR REPLACE VIEW high _ salary _ employees AS
SELECT employee _ id, salary FROM employees WHERE salary > 50000; Which statement about the view high _ salary _ employees is true?Solution
A SQL view is a virtual table that reflects the results of a query in real-time. 1. Dynamic Nature: A view does not store data itself but retrieves data dynamically from the underlying table when queried. 2. Purpose: The high _ salary _ employees view reflects any updates made to the employees table that meet the specified condition (salary > 50000). 3. Real-Time Updates: Changes to the employees table are automatically visible in the view without needing to recreate it. This behavior makes views ideal for abstraction and encapsulation in SQL. Why Other Options Are Incorrect: β’ A) The view stores a copy of the data in the database: A view is virtual and does not store data physically. β’ B) The view must be recreated if the employees table is updated: The view dynamically reflects updates to the employees table. β’ D) The view can be used to perform DML operations directly on employees: Views are read-only unless explicitly defined as updatable. β’ E) The view is static and cannot be updated: Views are dynamic and reflect real-time data.
All India Soil Survey and Land Use Organisation was established during :
The presence of certain toxic compounds in seeds can lead to severe health issues if ingested. Which alkaloid, found in the seeds of Argemone mexicana, ...
What nutrient deficiency leads to the development of the "Red leaf disorder" in cotton plants?
The form of education which is confined within the boundaries and follow a set pattern of curriculum is termed as
Which of these green house gas is most abundant in the atmosphere?
Full form of TRYSEM is
Which cereal crop is most tolerant to saline and alkali soils
Example of audio visual aid is
The measure of which nutrient's square is found deficient in "Black Soil"?
In paddy, the clipping of tip of seedlings is done as a preventive measure against which pest?Β