Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Filter on the maximum value

Status
Not open for further replies.

w860098

Technical User
Mar 21, 2002
63
GB
I have an Oracle database where records are stored each week, each of these 'batches' being assigned a unique (sequential) Credit Run Number.
I wish to write an Impromptu report where relevant details are output BUT only for those records which have been created during the last update, i.e. I wish to filter on the maximum Credit Run Number.

I can achieve this in SQL*Plus using the code :-

Select CREDIT_RUN_NO, CLAIM_NO from WAR_FACT
where CREDIT_RUN_NO = (select MAX(CREDIT_RUN_NO) from WAR_FACT)
/

How can I achieve the same results when using Impromptu ?
 
Ipen Query definition, in filter tab , select summary , instead of Details, then add CREDIT_RUN_NO = Maximum(CREDIT_RUN_NO)
 
Great - that worked just as I wanted it to.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top