select * from T_Cash_Info t
where not exists(select 1 from T_Cash_Info where Make_Number =t.Make_Number and Rest_Money<t.Rest_Money)
where not exists(select 1 from T_Cash_Info where Make_Number =t.Make_Number and Rest_Money<t.Rest_Money)
select * from T_Cash_Info t
where not exists
(select 1 from T_Cash_Info
where Make_Number =t.Make_Number
and Rest_Money<t.Rest_Money and
Rest_Money>0 and t.Rest_Money>0)