SELECT DISTINCT TOP 10 User_No FROM YourTable ORDER BY id DESC
select top 10 * from (select distinct * from table order by datecolumn) as t
SELECT TOP 10 * FROM MyTable ORDER BY MyPrimaryKeyID DESC
select DISTINCT mobNo from (select * from <table name> order by id, date desc) p where rownum <= 10 ORDER BY mobNo;
select top 20 user_no from tbl_webservicedata group by user_no order by max(id)desc
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)