C
Cosmin
Hello All,
I have the following problem:
I have a Table1 with 2 columns:
Name Date
A 1-Mar-2004
B 1-Mar-2004
C 1-Mar-2004
D 3-Mar-2004
C 4-Mar-2004
E 4-Mar-2004
B 6-Mar-2004
A 9-Mar-2004
D 29-Feb-2004
E 2-Mar-2004
A 3-Mar-2004
Now I need the following result:
Name Date
A 9-Mar-2004
B 6-Mar-2004
C 4-Mar-2004
D 3-Mar-2004
E 4-Mar-2004
(the most recently date for each name)
In the query I choose Table1 and each column:
Field: Name Date
Table: Table1 Table1
Sort:
Show: (selected) (selected)
Criteria: In (select max(Date) from Table1
group by Name)
or:
The result is:
Name Date
A 3-Mar-2004
B 6-Mar-2004
C 4-Mar-2004
D 3-Mar-2004
E 4-Mar-2004
Insteed of A= 9-Mar-2004 I have the wrong A= 3-Mar-2004.
What is wrong here, why I do not have the expected result?
I have the following problem:
I have a Table1 with 2 columns:
Name Date
A 1-Mar-2004
B 1-Mar-2004
C 1-Mar-2004
D 3-Mar-2004
C 4-Mar-2004
E 4-Mar-2004
B 6-Mar-2004
A 9-Mar-2004
D 29-Feb-2004
E 2-Mar-2004
A 3-Mar-2004
Now I need the following result:
Name Date
A 9-Mar-2004
B 6-Mar-2004
C 4-Mar-2004
D 3-Mar-2004
E 4-Mar-2004
(the most recently date for each name)
In the query I choose Table1 and each column:
Field: Name Date
Table: Table1 Table1
Sort:
Show: (selected) (selected)
Criteria: In (select max(Date) from Table1
group by Name)
or:
The result is:
Name Date
A 3-Mar-2004
B 6-Mar-2004
C 4-Mar-2004
D 3-Mar-2004
E 4-Mar-2004
Insteed of A= 9-Mar-2004 I have the wrong A= 3-Mar-2004.
What is wrong here, why I do not have the expected result?