How to resolve ORA 00936 Missing Expression Error? How to resolve ORA 00936 Missing Expression Error? oracle oracle

How to resolve ORA 00936 Missing Expression Error?


Remove the comma?

select /*+USE_HASH( a b ) */ to_char(date, 'MM/DD/YYYY HH24:MI:SS') as LABEL,ltrim(rtrim(substr(oled, 9, 16))) as VALUEfrom rrfh a, rrf bwhere ltrim(rtrim(substr(oled, 1, 9))) = 'stata kish' and a.xyz = b.xyz

Have a look at FROM

SELECTING from multiple tables You can include multiple tables in the FROM clause by listing the tables with a comma in between each table name


Remove the coma at the end of your SELECT statement (VALUE,), and also remove the one at the end of your FROM statement (rrf b,)


This answer is not the answer for the above mentioned question but it is related to same topic and might be useful for people searching for same error.

I faced the same error when I executed below mentioned query.

select OR.* from ORDER_REL_STAT OR

problem with above query was OR is keyword so it was expecting other values when I replaced with some other alias it worked fine.