Example:
Objective: In this example, we will modify the existing view to add a condition where the department is IT.
ALTER VIEW VW_Texas_Records AS SELECT * FROM Tbl_EMP WHERE Location = ‘Texas’ and Department = ‘IT’;
View Query:
SELECT * FROM VW_Texas_Records
Output: