" tr.day, tr.description, tr.comment, tr.generation FROM transactions tr JOIN " +
"transaction_accounts ta ON ta.transaction_id=tr.id WHERE ta.account_name LIKE " +
":accountName||'%' AND ta.amount <> 0 AND tr.profile_id = :profileId ORDER BY tr.year " +
" tr.day, tr.description, tr.comment, tr.generation FROM transactions tr JOIN " +
"transaction_accounts ta ON ta.transaction_id=tr.id WHERE ta.account_name LIKE " +
":accountName||'%' AND ta.amount <> 0 AND tr.profile_id = :profileId ORDER BY tr.year " +