Gyto
05-23-2008, 12:34 AM
Hi there,
I have a table containing the fields 'PropertyCode' and 'KPType', amongst others. There may be multiple rows that have the same PropertyCode AND KPType. Essentially, I need to select all the rows that have more than one of the same KPType for each PropertyCode.
For example:
Row PropertyCode KPType
1 aa type1
2 bb type1
3 aa type2
4 aa type1
5 bb type2
6 bb type2
The query I need would select rows 1, 4, 5 and 6 because they have more than one row with the same PropertyCode AND KPType.
Can anyone help me?
Thanks
Matt
I have a table containing the fields 'PropertyCode' and 'KPType', amongst others. There may be multiple rows that have the same PropertyCode AND KPType. Essentially, I need to select all the rows that have more than one of the same KPType for each PropertyCode.
For example:
Row PropertyCode KPType
1 aa type1
2 bb type1
3 aa type2
4 aa type1
5 bb type2
6 bb type2
The query I need would select rows 1, 4, 5 and 6 because they have more than one row with the same PropertyCode AND KPType.
Can anyone help me?
Thanks
Matt