select autoid,fa,fb
from A where autoid in
(select min(autoid) from A 
  group by fb)