I want to get the sum of several columns from 2 different tables (these tables share the same structure).
If I only consider one table, I would write this kind of qu
SELECT (SELECT SUM(amount) from debit) as debitamounts, (SELECT SUM(amount) from credit) as creditamounts