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.
What was the achievement of Dobereiner’s triads?
Where does the joint military exercise Kavach take place in April 2023?
Ramesh’s current age is 6 times the combined age of his two daughters. In 10 years, his age will be twice their total age at that time. What is Ramesh...
In the word MASTER, each consonant is changed to the letter immediately preceding it in the English alphabetical order and each vowel is changed to the ...
The country's first commercial-scale biomass-based hydrogen plant is coming up in which district of Madhya Pradesh?
Which of the following statements is incorrectly mentioned with respect to Asian Development Bank?
Average run scored by a batsman in first ‘x’ matches is 60. In next 13 matches he scored runs with an average of 80 so that his overall average incr...
Where did Gautam Buddha deliver his first Sermon?
Consider the following statements:
1. Intel's Pentium IV is an operating system used in PCs.
2. During booting period of a PC, the op...
The rectangle represents students, the circle represents girls, the oval represents arts stream, and the triangle represents sports. The numbers in diff...