Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3212

How to use the Nested In or where clause in formula for display of top or bottom number of records

$
0
0

Hi All

      I have a requirement of displaying the longest running jobs for which my sql server query is :

 

"Select Top 5 JOB_NAME,REPOSITORY_NAME,EXECUTION_TIME ,STATUS from [dbo].[COMP_HIS_TBL]where STATUS = 'Failure' order by EXECUTION_TIME DESC "

 

In SAP-BO I have used the following formula:

 

Long_JOBRUN.png

However the output displayed in not as desired:(

 

Output_Long_Job_Run.png

Pls provide a solution to this:(


Viewing all articles
Browse latest Browse all 3212

Trending Articles