I have a table int, int, varchar, varchar
IDA IDB foo bar
1053 106 ss a@a.com
1054 107 dws a@a.com
1061 114 a b@b.com
1062 114 a b@b.com
1063 114 a b@b.com
1064 115 t b@b.com
How would I get a resultset with single records for each IDB based on its lowest IDA, ie the following results
IDA IDB foo bar
1053 106 ss a@a.com
1054 107 dws a@a.com
1061 114 a b@b.com
1064 115 t b@b.com
IDA IDB foo bar
1053 106 ss a@a.com
1054 107 dws a@a.com
1061 114 a b@b.com
1062 114 a b@b.com
1063 114 a b@b.com
1064 115 t b@b.com
How would I get a resultset with single records for each IDB based on its lowest IDA, ie the following results
IDA IDB foo bar
1053 106 ss a@a.com
1054 107 dws a@a.com
1061 114 a b@b.com
1064 115 t b@b.com