Home Forums SQL Server 2005 SQL Server 2005 General Discussion How to Write Query for the Below Requirement? RE: How to Write Query for the Below Requirement?
SQLINT
SSC Enthusiast
Points: 100
More actions
September 19, 2013 at 11:55 pm
#1651772
Please use the below query.
select party_code,sum(inst_amt) as Total_instamt,sum(paid_amt) as paid from @table1 where paid_date is null or paid_date <'2012-07-23'
group by party_code[/b]