Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: select records based on preceeding records? Post Reply Post New Topic
Author Message
hummeri7583
Newbie
Newbie


Joined: 22 Aug 2008
Online Status: Offline
Posts: 1
Quote hummeri7583 Replybullet Topic: select records based on preceeding records?
    Posted: 22 Aug 2008 at 8:35am
Hi all,
 
New to this forum.  I'm usally pretty good with crystal, but this one has me stumped. 
 
I need to write a report from a database that tracks movement of a person from one place (in a prison) to another.  Prisoners move all the time, so there are a lot of records.  The subpoena asks for prisoners that were moved from "cell block A", to "cell block C" in a given date range.   But, they only want to show those who went direct from one to the other, not those that stopped at intermediate places between the two. 
 
For Example:
 
Inmate #1
     CELL BLOCK C   12-01-2005
     CELL BLOCK B   11-01-2005
     CELL BLOCK A   10-01-2005
 
Inmate #2
     CELL BLOCK C  12-01-2005
     CELL BLOCK A   11-01-2005
     CELL BLOCK B   10-01-2005
 
So, in this case I would only want to show Inmate #2, since he went direct from A to C, not stopping anywhere else in between. 
 
Does anyone have an idea on how to pull something like this off?   
 
 
Thaks in Advance!
IP IP Logged
Post Reply Post New Topic
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



This page was generated in 0.031 seconds.