select * from (select row_number() over(partition by bill_no,bill_type order by line_no) as rn,* from billmst) t where t.rn = 1
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)