why do we create a view in sql code example
Example: sql create view
CREATE VIEW view_name AS
SELECT column1, column2, ...
FROM table_name
WHERE condition;
CREATE VIEW view_name AS
SELECT column1, column2, ...
FROM table_name
WHERE condition;