1
select EmbroiderAccountId,
EmbroiderReceivedDeliveryChallanId BuyerOrderProductId,
EmbroiderDeliveryChallanNo,
EmbroiderName,
sum(Qty),
OrderNo,
Rate,
sum(Debit),
Credit,
EmbroiderReceivedChallanNo,
EmbroiderPaymentBillNo,
EmbroiderPaymentBillDate,
TransactionNaration
from dbo.EmbroiderAccount
group by EmbroiderReceivedChallanNo
Серьезно !!! более четко укажите ваш ввод и вывод. – Esty
http://stackoverflow.com/questions/2421388/using-group-by-on-multiple-columns –