sql create view
snippet in sql

sql create view

user853

CREATE VIEW view_name AS
SELECT column1, column2, ...
FROM table_name
WHERE condition;

how to create a view in sql

user5138


CREATE VIEW view_name AS

SELECT column1, column2, ...

FROM table_name

WHERE condition; 

create view

user6727

CREATE VIEW view_name AS SELECT id,category,MAX(created_at),content,title FROM table WHERE condition GROUP BY category

creating view in sql

user9903

The following SQL creates a view that shows all customers from Brazil:

CREATE VIEW [Brazil Customers] AS
SELECT CustomerName, ContactName
FROM Customers
WHERE Country = 'Brazil';