Have table like :
declare @tbl TABLE (id int,sub_id int,[money] money)
insert into @tbl (id,sub_id,money)
SELECT 289,33602502,800.00
UNION ALL
SELECT 300,33602502,805.00
UNION ALL
SELECT 735,33603527,7175.77
UNION ALL
SELECT 741,33603527,7172.77
UNION ALL
SELECT 2049,33606066,4817.77
UNION ALL
SELECT 2060,33606066,4791.77
UNION ALL
SELECT 2598,33607099,4084.77
UNION ALL
SELECT 2605,33607099,4053.77
Want delete rows where sub_id are same and money field is min. For example response must looks like :
id   sub_id      money
289 33602502    800.00
741 33603527    7172.77
2060 33606066   4791.77
2605 33607099   4053.77
How to do it ?
 
     
     
    