I want to create a view named PROJECT_FEMALE. From 3 different tables but sql gives me that error.
CREATE VIEW PROJECT_FEMALE
AS
SELECT e.Ssn, e.Fname, e.Lname, p.Pnumber, p.Pname, w.Hours
FROM Employee AS e, Works_on AS w, Project AS p
WHERE e.Ssn = w.Essn AND w.pno = p.Pnumber AND e.sex = 'F';
Error:
[Code: 933, SQL State: 42000] ORA-00933: SQL command not properly ended
[Script position: 103 - 105]
It points as statement after the Employee
but I do not understand what is the problem and how can I fix it?