Dear Pakar, Misalkan kita ada data sbb : Date COA Debit Credit Saya ingin pecah data tersebut menjadi Opening Balance, Transaction dan Ending Balance Opening Balance : Select COA, sum(Debit) As OBDebit, Sum(Credit) As OBCredit From dbo.tableName Transaction : Select COA, sum(Debit) As TransDebit, Sum(Credit) As TransCredit From dbo.tableName Ending Balance : EBDebit = OBDebit + TransDebit - TransCredit Apakah bisa dibuat dalam 1 query / sp di sql server? terima kasih |
Reply via web post | Reply to sender | Reply to group | Start a New Topic | Messages in this topic (1) |
Tidak ada komentar:
Posting Komentar