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.
W is taller than K who is shorter than U. O is taller than D but shorter than K. U is shorter than W. Who is the tallest?
Among F, G, H, I, J and K. H is taller than only F and K and I is shorter than only J and G. If each of them has a different height who among them will ...
What could be the possible height of R?
There are five persons Q, W, R, T and Y of different weights. T is heavier than Q and Y but not the heaviest. W is the lightest. Who among the following...
Who among the following weigh lighter than D?
In a group of four persons B, N, V, and W, V is fatter than only W but not as fat as N. B is also not as fat as N. Who is the leanest person in the group?
What is the weight of T?
There are five friends - D, F, H, M and P who have different heights. F is the tallest. H is taller than only M. P is not as tall as D. Who among the fo...
Who among the following is shorter than I but heavier than I?
Who is the second heaviest person?