Hello
I'm more of an Access guy but I know that you can do this.
If I have a table:
EMPLOYEE, CHECK DATE, CHECK AMOUNT
123, 1/1/07, 100
123, 2/1/07, 200
123, 3/1/07, 300
456, 1/1/07, 100
789, 4/1/07, 100
and I want to return each employee's maximum check date, such that I receive:
123, 3/1/07, 300
456, 1/1/07, 100
789, 4/1/07, 100
In Access, I'd do:
select EMPLOYEE, max(CHECK DATE) as max, CHECK AMOUNT
FROM TABLE
group by EMPLOYEE
In Crystal, I know of the maximum function but kept getting an error.
Any ideas?
Thanks.
ps
I'm more of an Access guy but I know that you can do this.
If I have a table:
EMPLOYEE, CHECK DATE, CHECK AMOUNT
123, 1/1/07, 100
123, 2/1/07, 200
123, 3/1/07, 300
456, 1/1/07, 100
789, 4/1/07, 100
and I want to return each employee's maximum check date, such that I receive:
123, 3/1/07, 300
456, 1/1/07, 100
789, 4/1/07, 100
In Access, I'd do:
select EMPLOYEE, max(CHECK DATE) as max, CHECK AMOUNT
FROM TABLE
group by EMPLOYEE
In Crystal, I know of the maximum function but kept getting an error.
Any ideas?
Thanks.
ps