Exkludera AS från tabellaliasing - AS kan användas med urvalslista men inte i FROM-satsen
select a.CREATEDATE, a.BELEGNRRECH, a.MNR, a.UTNR, a.KTXT, b.ANR
from INFOR.RELFBR a, INFOR.RELXDB b
where (a.SAINT = '90') and (a.MNR = b.MNR) and (b.SAINT = '10')
and (a.CREATEDATE >= '01.01.2014 00:00:00')
order by a.CREATEDATE
Exempel:
SQL> select * from t_dummy t;
X
-----------------------
9.0000
SQL> select * from t_dummy as t;
select * from t_dummy as t
*
error in line 1:
ORA-00933: SQL command not properly ended
Dokumentation:
http://docs.oracle.com/cd /B19306_01/server.102/b14200/statements_10002.htm#i2126863