Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Min and Max Records

Status
Not open for further replies.

strom99

MIS
Nov 28, 2000
126
US
I have the following data:

Tool Nbr
Run Nbr
Roll Nbr
Datetime
Yield

There are multiple Runs and Rolls per tool number, I need to display only the Min date and max date associated with each tool number. How could I accomplish this? Data is from SQL Server 2000, BO 5.1.7

Thanks
 
There are several likely solutions:

In pure BO, the best way may be to have two data providers with a 'calculation' in each query (if you can understand the wizard thingy).

You could 'union' two queries.

You could use freehand SQL.

There could be a solution using an alias and joining the table to itself, but that may be messy
 
I'd say that are 3 unlikely and one obvious solution :)

A union query with resp. a min(date) and then a max(date) is all you need

T. Blom
Information analyst
tbl@shimano-eu.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top