system
December 19, 2019, 8:05pm
1
Hi,
Some reason below query is not working in BO 4.2 query builder. It is throwing an error message saying the it is not a valid query. Any idea?
Select * from CI_INFOOBJECTS WHERE SI_ENDTIME>DATEADD(DAY,1,SI_STARTTIME)
Basically I am adding 1 day on SI_STARTTIME and I am using SQL server.
Philip (BOB member since 2006-03-02)
system
December 20, 2019, 12:30pm
2
The Query Builder does not use the syntax of the underlying database. It is very simplistic, and there is no support for any type of date function.
joepeters (BOB member since 2002-08-29)
system
December 20, 2019, 12:56pm
3
Thank you so much for info.
Then what is the alternative solution to get this? Basically I am running a query where SI_ENDTIME >SI_STARTTIME+1 Day.
Appreciate your thought on it.
Philip (BOB member since 2006-03-02)
system
December 20, 2019, 3:14pm
4
All you can do is select both properties, then compare them afterwards.
joepeters (BOB member since 2002-08-29)
system
December 23, 2019, 12:19pm
5
Selecting both properties and compare is a MANUAL steps. I do not want that since I have thousands of schedules. I only need those schedules which ran Start time + 60 secs.
Philip (BOB member since 2006-03-02)
system
December 23, 2019, 4:11pm
6
Philip,
You can use a more export-friendly tool like this:
And then take the results in Excel and perform your date calculations in the Excel worksheet.
Atul Chowdhury (BOB member since 2003-07-07)
system
December 31, 2019, 1:25pm
7
The new BI-on-BI universe in BI4.2 SP03 might make it a little easier: https://wiki.scn.sap.com/wiki/display/BOBJ/Unlock+the+CMS+database+with+new+data+access+driver+for+BI+4.2
joepeters (BOB member since 2002-08-29)