This works in mySQL, but not Oracle 10g and I have no idea why. Please help!
SQL> SELECT E.name, B.publisher FROM employee as E
2 INNER JOIN loan AS L ON (E.empno=L.empn o)
3 INNER JOIN books as B ON (L.isbn=B.isbn)
4 GROUP BY E.name, B.publisher
5 HAVING COUNT(DISTINCT B.isbn)>5;
ERROR at line 1:
ORA-00933: SQL command not properly ended
How should this be written in Oracle?
SQL> SELECT E.name, B.publisher FROM employee as E
2 INNER JOIN loan AS L ON (E.empno=L.empn o)
3 INNER JOIN books as B ON (L.isbn=B.isbn)
4 GROUP BY E.name, B.publisher
5 HAVING COUNT(DISTINCT B.isbn)>5;
ERROR at line 1:
ORA-00933: SQL command not properly ended
How should this be written in Oracle?
Comment