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.
Which of the following nations successfully launched the APSTAR-6D telecommunicationsatellite on 9 July 2020?
What was the total time taken to draft the Constitution of India?
During which dates did Antonio Guterres, the Secretary-General of the United Nations (UNSG), undertake his official visit to India in 2022?
What is the primary aim of the RBI's centralised web portal, UDGAM (Unclaimed Deposits β Gateway to Access Information)?
The Marylebone Cricket Club (MCC) has declared and awarded two Indian cricketers, name them?
Which Article of the Constitution explains that the executive power of every state shall be so exercised as not to impede or prejudice the exercise of t...
What was the name of the India's first privately developed rocket?
Carbon dioxide plays a vital role in changing the earth's climate, leading to a critical condition known as ________.Β
'Dalkhai' is a folk dance of which of the following states of India?
As in July 2021,The NIPUN Bharat Scheme was launched by which of the following Ministries?