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!

Newest Date

Status
Not open for further replies.

kristinaloupe

Technical User
May 12, 2004
31
US
I have a table that stores events and event dates. I need to have Crystal pick the newest event date for duplicate events.

Example: I have "Case Opened" on 2/1/2004 and "Case Opened" (again) on 12/31/2004 -- How do I force Crystal to find only the newest date?
 
Hi,
If possible, create a view in the database that selects the records with the Max date.
For example, something like ( generic, since you did not provide database info)
Code:
Create view Event_Report as select * from eventtable e where "Case Opened" = ( select max("Case Opened") from eventtable b where e.event = b.event)




[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
Thank you for such a quick reply....

I do not have access to change the database itself, unfortunately, any other suggestions?
 
I think maybe I was asking in the wrong way so I submitted a second thread on this subject.. thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top