select b from t group by a;