system
November 5, 2012, 11:19pm
1
I am trying to create a new object for today date.
Object Name: Today (dtm)
Select: SYSDATE from DUAL
Getting Error: Parse failed: Exception: DBD, ORA-00933: SQL command not properly ended State:N/A
I used this object in report and there is also error
Error: The query does not reference any table when attempting to build the WHERE clause. (Error: WIS 00022)
khalidlatif7868 (BOB member since 2012-11-05)
system
November 6, 2012, 12:01am
2
Why don’t you use CurrentDate function in Webi Report.
RUC (BOB member since 2010-05-03)
system
November 6, 2012, 8:10am
3
You’ll get an error because you’re not referencing a table in your webi report. Drop another object in and you’ll find it works perfectly!
Debbie
Debbie (BOB member since 2005-03-01)
MarkP
November 6, 2012, 9:48am
4
I am trying to create a new object for today date.
Object Name: Today (dtm)
Select: SYSDATE from DUAL
Getting Error: Parse failed: Exception: DBD, ORA-00933: SQL command not properly ended State:N/A
I used this object in report and there is also error
Error: The query does not reference any table when attempting to build the WHERE clause. (Error: WIS 00022)
Welcome to B B
Please refer to the Relative Dates Topic for more information.
What Debbie says is absolutely spot on.
Don’t use DUAL - you’ve been asked for a SELECT statement in your obejct definition, not a SELECT x FROM y statement.
SYSDATE will give the current date and time
TRUNC(SYSDATE) will give today’s date
Neither will parse in Designer because the parsing algorithm expects select statements in the form table.column (or similar) so that it can parse them.