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!

Simple Date Wrapping Query

Status
Not open for further replies.

Sparks78

Technical User
Feb 25, 2005
4
EU
Hi,

I am trying to get the minimum date, where a condition is equal an identity number.

I know how to do this SQL, but I'm getting slightly lost in Crystal.

Minimum (<date/Time>, <Case ID>)
where Condition = 175

I hope this is makes sense.


TJ
 
Create a formula {@min175}:

if {table.ID} = 175 then {table.date}

Then right click on this formula and insert a minimum at the group level. Or if you wanted to display the minimum in the detail record, then use:

if {table.ID} = 175 then minimum({table.date},{table.ID})

...assuming you have a group on ID.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top