I have a query which returns the following details
Contract_id PO_number etc
1694 1234
1694 1234
1695 1235
1695 1236
So there are incidents where a contract_id can have a single PO_Number against it or Multiple PO_Numbers I am grouping this to connect to a table to bring back some values matching on the Contract_ID with the PO_Number as a field in the new query. If I group on contract and PO then I get individual for most of the outputs but of course multiple details where there are more than one different PO_Numbers to the Contract. I think if I could have a count on the PO_number to return the data as. I can resolve the issue.
Contract_id PO_number etc Count
1694 1234 1
1694 1234 1
1695 1235 1
1695 1236 2
Can anybody help please.
StewartS