Hi all
what have is a table wich hold all invoive of customer wich buy on the store:
what i need is to print only the record with the older date for each customer, there are about 300 customer.
ex:
date cuscod customer amount
12-02-2003 6 Joe 1900
13-02-2003 4 Miguel 1500
14-02-2003 5 Frank 2000
14-02-2003 6 Joe 2800
14-02-2003 4 Miguel 1000
16-02-2003 5 Frank 2530
17-02-2003 5 Frank 1235
17-02-2003 6 Joe 2700
i need like this(just the last record from a date(buyini - buyend):
14-02-2003 4 Miguel 1000
17-02-2003 5 Frank 1235
17-02-2003 6 Joe 2700
what have is a table wich hold all invoive of customer wich buy on the store:
what i need is to print only the record with the older date for each customer, there are about 300 customer.
ex:
date cuscod customer amount
12-02-2003 6 Joe 1900
13-02-2003 4 Miguel 1500
14-02-2003 5 Frank 2000
14-02-2003 6 Joe 2800
14-02-2003 4 Miguel 1000
16-02-2003 5 Frank 2530
17-02-2003 5 Frank 1235
17-02-2003 6 Joe 2700
i need like this(just the last record from a date(buyini - buyend):
14-02-2003 4 Miguel 1000
17-02-2003 5 Frank 1235
17-02-2003 6 Joe 2700