Querying a View

You can query a view just like you would a regular table:

SELECT * FROM employee_view;

Explanation: This retrieves all rows from the employee_view, showing only employees who meet the salary condition set during the view’s creation.


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *