Hello Everyone,
I am having a problem getting this sql statement to run in oracle. It ran fine for one year until today. I am trying to retrieve data from the prior day. I just can't figure it out. Thanks
SQL> select
2 distinct
3 (a."opDate")||','||
4 ltrim(rtrim(a."vehicleID"))||','||
5 ltrim(rtrim(a."runNumber"))||','||
6 ltrim(rtrim(b."patternDirection"))||','||
7 from "dailyPiece" a, "blockVariantBDDetail" b
8 where a."opDate" between 'sysdate-1'
9 and a."vehicleID" is not null
10 and b."patternDirection" is not null;
from "dailyPiece" a, "blockVariantBDDetail" b
*
ERROR at line 7:
ORA-00936: missing expression
I am having a problem getting this sql statement to run in oracle. It ran fine for one year until today. I am trying to retrieve data from the prior day. I just can't figure it out. Thanks
SQL> select
2 distinct
3 (a."opDate")||','||
4 ltrim(rtrim(a."vehicleID"))||','||
5 ltrim(rtrim(a."runNumber"))||','||
6 ltrim(rtrim(b."patternDirection"))||','||
7 from "dailyPiece" a, "blockVariantBDDetail" b
8 where a."opDate" between 'sysdate-1'
9 and a."vehicleID" is not null
10 and b."patternDirection" is not null;
from "dailyPiece" a, "blockVariantBDDetail" b
*
ERROR at line 7:
ORA-00936: missing expression