In a report I am working on I have one detail line that displays values from two tables.
Table OR contains the date time stamp I need
Table OB contains the rest of the information I need.
(These two tables are linked by a Set_Id field.)
Table OB contains different types of data depending on the OB_Id field.
If OB_Id = 1 then OB_fldA = weight.
If OB_Id = 2 then OB_fldB = appetite_flg.
Below I have tried to type up a sample of the report. I have it grouped by the OR_DtTm.
I would like to get the report to look like there is one line that contains both the weight and the appetite_flg and eliminate any lines that have weight info and no appetite_flg to go with it (like the 3rd one down with the time of 3:45:30).
How it currently looks:
Date Weight Flg OR_DtTm
6/22/2010 64.8 6/22/2010 3:44:31PM
6/22/2010 0.0 N 6/22/2010 3:44:31PM
6/22/2010 64.0 6/22/2010 3:45:30PM
8/3/2010 64.0 8/3/2010 9:09:01AM
8/3/2010 Y 8/3/2010 9:09:01AM
How I would like for it to look:
Date Weight Flg OR_DtTm
6/22/2010 64.8 N 6/22/2010 3:44:31PM
8/3/2010 64.0 Y 8/3/2010 9:09:01AM
I hope this makes sense. Any suggestions on how to do this? TIA!
RenaG (BOB member since 2011-04-11)