INSERT INTO #tempLedgerFinalBalance SELECT * FROM #tempLedgerPrevious t2 WHERE NOT EXISTS ( SELECT * FROM #tempLedgerFinalBalance as t1 WHERE t1.LedgerHead=t2.LedgerHead AND t1.MainLedger=t2.MainLedger AND t1.SubLedger=t2.SubLedger )
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)