M
miles
hi,
i kind of urgently need help, i doing a database and there is a
problem i encounter.....
i have three field a name, date and currency - when i use group by for
the name and last or max for both of the date & currency with the same
name it only take up some correct date ........
example:
name date
currency
John 03/03/06
1.00
John 00/09/05
1.20
Miles 00/03/05
0.50
Miles 03/01/06
1.50
when i run the query
where i (name group by)
(date last )
(currency last )
it will result in :
John 03/03/06 1.20 (wrong currency
collected)
Miles 03/01/06 1.50 (correct)
how to solve this problem ????? how to use the IIF method if i want to
use?? is there some other way to help me solve this problem????
i kind of urgently need help, i doing a database and there is a
problem i encounter.....
i have three field a name, date and currency - when i use group by for
the name and last or max for both of the date & currency with the same
name it only take up some correct date ........
example:
name date
currency
John 03/03/06
1.00
John 00/09/05
1.20
Miles 00/03/05
0.50
Miles 03/01/06
1.50
when i run the query
where i (name group by)
(date last )
(currency last )
it will result in :
John 03/03/06 1.20 (wrong currency
collected)
Miles 03/01/06 1.50 (correct)
how to solve this problem ????? how to use the IIF method if i want to
use?? is there some other way to help me solve this problem????