on 04-14-2015 1:06 PM
Hi Experts,
Can you help me with the query to list the no of failed instances through query builder for the month of March only?
I'm also trying to get the data from instance manager as I'm interested to analyse the error with which the reports failed, but it is only listing it for a specific user even though its not selected in any of the criteria. Not so sure why
Regards,
Diego
Try this.
Select SI_NAME, SI_OWNER, SI_AUTHOR,
SI_STATUSINFO from CI_INFOOBJECTS where SI_SCHEDULEINFO.SI_OUTCOME>=2 and
SI_SCHEDULEINFO.SI_STARTTIME>=<Date>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jawahar,
Thanks for responding .
The * statement was helpful and SI_STARTTIME under the scheduling info did show some dates for the month of March however is there anything that we could do to restrict the data only for the month of march by some "between" statement, because SI_SCHEDULEINFO.SI_STARTTIME>= is also providing the data for month of April which at the moment is not required.
I'm not so sure how to create a query with a between statement.
Regards,
Diego
There cannot be any bugs in Query Builder, never has been noted. Its the query that has the fault. As per your need below query would suit better
Select SI_NAME, SI_SUBMITTER, SI_ERROR_MESSAGE from CI_INFOOBJECTS where SI_SCHEDULE_STATUS=3 and SI_ENDTIME between '2015.03.01.00.00.00' and '2015.03.31.23.59.59'
Hi Ravi,
I'm logged in with an User who is a part of administrator group.
With the below query, I'm able to receive the output but it also includes the failed instances occurred in the month of April. But I would like to restrict the data to a particular month March.
Select SI_NAME, SI_OWNER, SI_AUTHOR, SI_STARTTIME, SI_ENDTIME
SI_STATUSINFO from CI_INFOOBJECTS where SI_SCHEDULEINFO.SI_OUTCOME>=2 and
SI_SCHEDULEINFO.SI_STARTTIME>='2015.03.01.00.00.00'
Regards,
Diego
Thats pretty weird since we are not even specifying any object name in where clause, can you use * in select statement and check how many results are you getting?
Also check below query, its without between clause
Select SI_NAME, SI_SUBMITTER, SI_ERROR_MESSAGE from CI_INFOOBJECTS where SI_SCHEDULE_STATUS=3 and SI_ENDTIME > '2015/03/01 00:00:00' and SI_ENDTIME < '2015/03/31 23:59:59'
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.