SamScib
Technical User
- Jun 18, 2013
- 6
Hello,
I have a table structured in the following way:
Part COO
1a1 US
1a1 CN
1a1 MX
1b1 US
1c1 US
1c2 US
1c3 US
1d1 MX
1d2 US
I would like to do a Count Distinct on the COO column grouped by Part to return only those parts that have more than 1 COO. In the above example, I would return part 1a1 with a count of "3" and 1d1 with a count of "2".
Can someone please give me the syntax to make this work using a sub-query in Access SQL?
Thanks a lot!
Sam
I have a table structured in the following way:
Part COO
1a1 US
1a1 CN
1a1 MX
1b1 US
1c1 US
1c2 US
1c3 US
1d1 MX
1d2 US
I would like to do a Count Distinct on the COO column grouped by Part to return only those parts that have more than 1 COO. In the above example, I would return part 1a1 with a count of "3" and 1d1 with a count of "2".
Can someone please give me the syntax to make this work using a sub-query in Access SQL?
Thanks a lot!
Sam