I am using this query to fetch data from SQL Server 2008:
select
g.godown_name, s.supplier_name, t.type_name,
r.bags_instock, b.lb_per_bag, t.rate
from
tbl_godown g, tbl_yarn_supplier s, tbl_yarn_type t,
tbl_yarn_receive r, tbl_godown_transaction gt, tbl_yarn_book b
where
r.book_id = b.book_id and
s.supplier_id = b.supplier_id and
t.type_id = b.type_id and
gt.godown_id = g.godown_id and
gt.receive_id = r.receive_id
Result is that:

Here some transaction have same Godown, Suppliar, Tpe & lbs_per_bag
1. 1 & 7
2. 2,3,4,5
3. 8,9,10,11
4. 12
5. 6
if any row have same Godown, Suppliar, Tpe & lbs_per_bag they should not repeat
Result should be like that.
thanks
waiting for response
