I have a table: abc_test with columns n_num, k_str.
This query doesnt work:
select distinct(n_num) from abc_test order by(k_str)
B
You might think about using group by instead:
select n_num from abc_test group by n_num order by min(k_str)