J
Jim S
Hello,
I have a table with the following fields, ID, DATE and Call Type.
I am trying to get the latest call for each ID. I tried using the grouping
function but i couldnt bring the call type through as well.
I read something about a correlated query and have some syntax that looks
like this, but it only returns the most recent record called.
SELECT *
FROM LC AS P1
WHERE (((P1.CommDate)=(SELECT MAX([CommDate])
FROM LC AS P2
WHERE P2.[ID_number] = P1.[id_number])));
I want it to return the most recent call for each ID number and also disply
the type of call, and time,
it should be like
IDa 4/25/08 Email
IDb 4/25/08 CALL
IDc 4/25/08 CALL
Thank you,
I have a table with the following fields, ID, DATE and Call Type.
I am trying to get the latest call for each ID. I tried using the grouping
function but i couldnt bring the call type through as well.
I read something about a correlated query and have some syntax that looks
like this, but it only returns the most recent record called.
SELECT *
FROM LC AS P1
WHERE (((P1.CommDate)=(SELECT MAX([CommDate])
FROM LC AS P2
WHERE P2.[ID_number] = P1.[id_number])));
I want it to return the most recent call for each ID number and also disply
the type of call, and time,
it should be like
IDa 4/25/08 Email
IDb 4/25/08 CALL
IDc 4/25/08 CALL
Thank you,