sql distinct by one column

join shbcf.ru