Finalize account view
This commit is contained in:
@ -15,7 +15,11 @@ ORDER BY transactions.date DESC
|
||||
LIMIT 200;
|
||||
|
||||
-- name: GetTransactionsForAccount :many
|
||||
SELECT transactions.* FROM transactions
|
||||
SELECT transactions.id, transactions.date, transactions.memo, transactions.amount,
|
||||
accounts.name as account, payees.name as payee
|
||||
FROM transactions
|
||||
INNER JOIN accounts ON accounts.id = transactions.account_id
|
||||
INNER JOIN payees ON payees.id = transactions.payee_id
|
||||
WHERE transactions.account_id = $1
|
||||
ORDER BY transactions.date DESC
|
||||
LIMIT 200;
|
Reference in New Issue
Block a user