distinct SQL query

join shbcf.ru