Skip to content

Instantly share code, notes, and snippets.

-- ----------------------- Ledger Balance for both ignored and unignored---------------
delete from ledger_balance_event where id in
(
select distinct lbe.id
from ledger_balance_event lbe
inner join ledger_balance lb on lbe.id = lb.id and lb.status <> 'REFERENCE'
where lb.ledger_id in (<ignored_accounts,unignored_accounts>)
);
@ahonarmand-zz
ahonarmand-zz / README.md
Created March 30, 2018 19:19 — forked from hofmannsven/README.md
My simply Git Cheatsheet