I'm new to SQL and I'm currently writing a query and I got this error. Any help will be appreciated.
ORA-00933: SQL command not properly ended
My Query below:
CREATE VIEW moscow_paris_overlap(SSN) AS
SELECT t1.SSN
FROM assign AS T1
INNER JOIN assign AS T2
ON T1.SSN = T2.SSN
WHERE T1.EndYear = T2.StartYear
AND T1.CityName = 'Moscow'
AND T2.CityName = 'Paris';
SELECT DISTINCT emp.* FROM emp INNER JOIN moscow_paris_overlap ON emp.SSN = moscow_paris_overlap.SSN;