SYNTAX
CREATE OR REPLACE VIEW VIEW_NAME AS
SELECT COLUMNS
FROM TABLES
WHERE CONDITION;
e.g.
CREATE OR REPLACE VIEW EMPLOYEE_VW AS
SELECT EMPLOYEE_NAME,DEPARTMENT,SALARY
FROM EMPLOYEE
WHERE EMPLOYEE_NAME LIKE = '%WAN%';
CREATE OR REPLACE VIEW VIEW_NAME AS
SELECT COLUMNS
FROM TABLES
WHERE CONDITION;
e.g.
CREATE OR REPLACE VIEW EMPLOYEE_VW AS
SELECT EMPLOYEE_NAME,DEPARTMENT,SALARY
FROM EMPLOYEE
WHERE EMPLOYEE_NAME LIKE = '%WAN%';
No comments:
Post a Comment