Quote:
quote:
I would like to create a query only retrieve records which Value of field2 is unique.
results will be:
Field1 Field2 Field3
1 b 4
1 c 5
|
I do not understand how you arrive at the values of 'Field1' in your resultset. For example, where does the value of '1' for Field1 come from for the row in the resultset where the Field2 value is 'b'?
If you want the rows in the table where Field2 is unique, i.e. those rows where a given value of Field2 is present in only one row then:
Code:
SELECT * FROM yourtable WHERE Field2 IN
(SELECT Field2 FROM yourtable GROUP BY Field2 HAVING COUNT(*)=1)
Jeff Mason
Custom Apps, Inc.
www.custom-apps.com