Skip to content

Instantly share code, notes, and snippets.

@suspecie
Last active February 3, 2017 16:03
Show Gist options
  • Save suspecie/0f24acd059efb3912a30e2570996690b to your computer and use it in GitHub Desktop.
Save suspecie/0f24acd059efb3912a30e2570996690b to your computer and use it in GitHub Desktop.
DELETE FROM AccountingTransactionItem
WHERE
id_transacao_contabil IN (SELECT
id_transacao_contabil
FROM
dev_gestorfox.AccountingTransaction
WHERE
id_descricao_transacao_contabil = 79);
DELETE FROM AccountingTransaction
WHERE
id_descricao_transacao_contabil = 79;
DELETE FROM AccountingBalanceSheetAccountBalance WHERE id_balanco_contabil in(SELECT id_balanco_contabil FROM dev_gestorfox.AccountingBalanceSheet where tipo_balanco = 'E');
DELETE FROM AccountingBalanceSheet where tipo_balanco = 'E';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment