L
Leslie Isaacs
Hello All
I have a table 'confirmed' with the following fields (amongst others):
[month number]
[client name]
[ni code]
Each [client name] appears on many records, each with a different [month
number], and usually (but not always!) with the same [ni code].
I need a query to tell me which clients (identified by [client name]) have
more than one [ni code], taking into account only those records where [month
number] is >72.
I have tried:
SELECT confirmed.[client name], Count(confirmed.[ni code]) AS [CountOfni
code], confirmed.[ni code]
FROM confirmed
WHERE (((confirmed.[month number])>"71"))
GROUP BY confirmed.[client name], confirmed.[ni code]
HAVING (((Count(confirmed.[ni code]))>1));
.... but this gives me the total number of records for each [client name] and
[ni code] ... which I suppose is what I have asked for, but is not what I
want!
Hope someone can help
Many thanks
Les
I have a table 'confirmed' with the following fields (amongst others):
[month number]
[client name]
[ni code]
Each [client name] appears on many records, each with a different [month
number], and usually (but not always!) with the same [ni code].
I need a query to tell me which clients (identified by [client name]) have
more than one [ni code], taking into account only those records where [month
number] is >72.
I have tried:
SELECT confirmed.[client name], Count(confirmed.[ni code]) AS [CountOfni
code], confirmed.[ni code]
FROM confirmed
WHERE (((confirmed.[month number])>"71"))
GROUP BY confirmed.[client name], confirmed.[ni code]
HAVING (((Count(confirmed.[ni code]))>1));
.... but this gives me the total number of records for each [client name] and
[ni code] ... which I suppose is what I have asked for, but is not what I
want!
Hope someone can help
Many thanks
Les