I am trying to do some exercises in Oracle and when i'm trying to create a view I get this error: SQL command not properly ended.
As I thought it might be my error I tried to directly copy paste some code from official oracle slides:
CREATE VIEW view_employees
AS SELECT employee_id emp_id, first_name, last_name, email
FROM employees
WHERE employee_id BETWEEN 100 and 124
SELECT *
FROM view_employees
but I keep getting the same error, even if modify the create statement adding
CREATE OR REPLACE VIEW.
;after124, Oracle does not allow theWHEREclause to containSELECT, SQL Server does allow a newSELECTafter aCREATE VIEW(separated by the batch operatorGO).create viewpart on its own, without the following query?;by convention, but it's configurable in SQL*Plus.