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.
Two cars start from a house at an interval of 10 minutes and travel at a speed of 20 km/hr. With how much speed (km/hr.) should a woman coming from the ...
A man is travelling at a speed of 100 km/h such that he will take 60 minutes to reach his destination. But after completing half the journey, the man to...
A can do a piece of work in 15 days while B can do it in 18 days. Starting with A, they work on alternate days till the work gets over. How many days i...
Girish can paint a picture in 4 days when he works for 8 hours per day. Due to illness, he could work for only 6 hours per day and was required to finis...
A car is moving at a uniform speed of 35 km/h. What is the time it takes to cover 140 km?
A and B can do job in 10 days. B and C can do same job in 12 days. A, B and C together can do same job in 8 days. In how many days A and C together can ...
A can cultivate 3/5th of the land in 15 days and B can cultivate 1/4th of the land in 10 days. In how many days working together A...
A man can do a piece of work in 30 hours. If he works with his son then the same piece of work is finished in 20 hours. If the son works alone he can do...
A and B can do a work in 21 days, A is (7/4) times as efficient as B. In how many days, A alone can complete the (100/3)% of the work?
A and B can do a certain work in 6 hours, and A, B and C together take 4 hours to do the same. How long will it take for C alone to accomplish the task?