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 can do
select distinct top 10000 (n_num) --assuming you won't have more than 10,000 rows from abc_test order by(k_str)