How to write a subquery using DB
Posted
by Rita
on Stack Overflow
See other posts from Stack Overflow
or by Rita
Published on 2010-03-25T09:21:17Z
Indexed on
2010/03/25
9:23 UTC
Read the original article
Hit count: 459
SELECT SUM( amount_disbursed ) disbusedamount, (select SUM( loaninstallmentpaid_amount ) FROM ourbank_loan_repayment
) paidamount,
SUM( amount_disbursed )- (select SUM( loaninstallmentpaid_amount ) FROM ourbank_loan_repayment
) differenceamount
FROM ourbank_loan_disbursement
Any Help would be appreciated
© Stack Overflow or respective owner