Get Running Sum of Query SQL Query

 select RequestNo,FileName,PaymentStatus,count(0) as TxnCount,SUM(PaidAmount) as Amount

,SUM(SUM(PaidAmount)) over(Order by RequestNo) as RunningSum from

Tbl_T_CommunityPaymentOnline where 

IsDeleted is null and

RequestNo>=131 and PaymentStatus='Inprocess'

group by RequestNo,PaymentStatus,FileName

Comments

Popular posts from this blog

Uploading Image to Sql Server Image Datatype in asp.net using fileupload Control