Focal Point
Help with determining and printing Min/Max values of fields

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/9781093482

May 16, 2008, 01:24 PM
Jeff_Rowland
Help with determining and printing Min/Max values of fields
Have the following setup:
TABLE1 (Has only 3 fields)

Field Name Type Length

Class Text 14
Arrive Date
Depart Date

This table can have multiple records for same class. What I'm wanting to do is print a report that displays one record for each class that includes Class Name ,Earliest Arrival Date, Latest Departure Date.

Example:

Art 101 Art 101 Art 101
07/17/2008 07/16/2008 07/16/2008
08/21/2008 08/22/2008 08/21/2008

When I run the report would print:

CLASS NAME Earliest Arrival Latest Departure

Art 101 07/16/2008 08/22/2008


7.7.02 Windows7
HTML/Excel/PDF
May 16, 2008, 03:02 PM
j.gross
If the date variables are offset dates (a/k/a smart dates), Focus will order the dates properly, and

WRITE
MIN.ARRIVE_DATE AS 'Earliest Arrival'
MAX.DEPART_DATE AS 'Latest Departure'
BY CLASS_TEXT AS 'CLASS NAME'

should work just fine.

If not, use DEFINE to derive offset date variables.


- Jack Gross
WF through 8.1.05