Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Select Records with highest ID Post Reply Post New Topic
Author Message
Kwirky
Newbie
Newbie
Avatar

Joined: 21 Apr 2010
Online Status: Offline
Posts: 32
Quote Kwirky Replybullet Topic: Select Records with highest ID
     Posted: 29 Jul 2010 at 2:31pm
Hi,
Am trying to amend a report so that only the record with the highest row ID is shown. I have a table with listings of quotes created and in many cases there are revisions of the same quote number and I want to show only the most recent revision. There are no identifiers within the table to be able to exclude the others, the only thing that will differ would be the price (sometimes higher, sometimes lower). Sometime the revisions are done on the same date, so I cannot select by recent date.
 
ID            Date
381704   1/7/2010
382338   1/7/2010
382339   1/7/2010
 
I though that I could use a select statement for maximum ID, however cannot word it properly.
 
Any help would be appreciated
Kwirky
 
 


Edited by Kwirky - 29 Jul 2010 at 2:34pm
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 29 Jul 2010 at 3:24pm
if there is a field to group on group on it
make ID number field the sort asending
suppress detial section
place fields you want to see on the group footer
IP IP Logged
Kwirky
Newbie
Newbie
Avatar

Joined: 21 Apr 2010
Online Status: Offline
Posts: 32
Quote Kwirky Replybullet Posted: 29 Jul 2010 at 3:47pm

Thank you SO much. It worked a treat!!!

IP IP Logged
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum