I have a table with 3 columns.
ID, EMail, Company
Example data
1,[email protected],BBC
1,[email protected],British Broadcasting
1,[email protected],Beeb
I only want the first record returned. Using Distinct on ID doesn't seem to work when I include Company in the select statement because the values are different. I just want to discard the subsequent records.
Can someone help me please
ID, EMail, Company
Example data
1,[email protected],BBC
1,[email protected],British Broadcasting
1,[email protected],Beeb
I only want the first record returned. Using Distinct on ID doesn't seem to work when I include Company in the select statement because the values are different. I just want to discard the subsequent records.
Can someone help me please


. I am assuming the user has say 3 records for each person and 30 in the table, so he wants to return 10 unique rows for example, so some sort of grouping is required.