Hi Everybody,
My organization is going to Crystal Reports and I'm just now learning it. We are using Crystal Reports 9, and have an Oracle database.
Here's my question; I'm trying to write a report that is based on a storage location. It involves two tables: (This is a simplified version![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Case_# Tag_# Description
04-1234 556123 Clock Radio
04-1234 556124 CD Player
04-1234 556125 Telephone
04-1234 556126 Remote Control
04-1256 621335 Television
04-1256 621336 Dresser
04-1256 621337 Couch
Tag_# Location Date_Moved Time_Moved
556123 Receipt1 2/4/2004 15:31
556123 097B 2/4/2004 15:00
556123 Pallet 2/3/2004 8:00
556124 Receipt2 2/4/2004 16:00
556124 097B 2/4/2004 15:30
556124 Receipt1 2/4/2004 15:00
556125 097B 2/4/2004 15:00
556125 Pallet 2/3/2004 8:00
What I'm trying to do is print a report that list all tag_#'s in Case_# 04-1234 that are in the location Receipt1.
The problem I'm having is tag_# 556124 shows up on the list because it once was in Receipt1, but it shouldn't it's now in Receipt2.
I'm thinking the solution is to go to each tag_# in case_# 04-1234 and read the last entry only. If it matches the location I want, it selects that record, else it moves on to the next tag_# for that case.
I havn't found anything in a couple books I bought that talks about selecting just that last record. Is there such a way to do that? Or is there another solution to this problem?
Keep in mind that this is a huge database with over 100,000 tag_# and growing, not to mention all the locations those tag_#'s move around in.
You help is most appreciated on this (sorry my cut&paste looks bad on this).
Thanks,
Joe
My organization is going to Crystal Reports and I'm just now learning it. We are using Crystal Reports 9, and have an Oracle database.
Here's my question; I'm trying to write a report that is based on a storage location. It involves two tables: (This is a simplified version
Case_# Tag_# Description
04-1234 556123 Clock Radio
04-1234 556124 CD Player
04-1234 556125 Telephone
04-1234 556126 Remote Control
04-1256 621335 Television
04-1256 621336 Dresser
04-1256 621337 Couch
Tag_# Location Date_Moved Time_Moved
556123 Receipt1 2/4/2004 15:31
556123 097B 2/4/2004 15:00
556123 Pallet 2/3/2004 8:00
556124 Receipt2 2/4/2004 16:00
556124 097B 2/4/2004 15:30
556124 Receipt1 2/4/2004 15:00
556125 097B 2/4/2004 15:00
556125 Pallet 2/3/2004 8:00
What I'm trying to do is print a report that list all tag_#'s in Case_# 04-1234 that are in the location Receipt1.
The problem I'm having is tag_# 556124 shows up on the list because it once was in Receipt1, but it shouldn't it's now in Receipt2.
I'm thinking the solution is to go to each tag_# in case_# 04-1234 and read the last entry only. If it matches the location I want, it selects that record, else it moves on to the next tag_# for that case.
I havn't found anything in a couple books I bought that talks about selecting just that last record. Is there such a way to do that? Or is there another solution to this problem?
Keep in mind that this is a huge database with over 100,000 tag_# and growing, not to mention all the locations those tag_#'s move around in.
You help is most appreciated on this (sorry my cut&paste looks bad on this).
Thanks,
Joe