0
@jignesh trivedi , this will not work out to get desired result
-1
Hi,
you can add date filter in where condition
SELECT P_sname, SUM(P_opnbal) AS opneningbal, SUM(P_credit) AS credit, SUM(P_debit) AS debit, SUM(P_opnbal) + SUM(P_credit) - SUM(P_debit) AS closingbal
FROM ACNT
WHERE P_Date between '2015-01-28' and '2015-01-28'
GROUP BY P_sname
ORDER BY P_sname DESC
hope this will help you.