Is there any better solution to get these multiple (sometimes it would be just one row, sometimes - multiple) rows with the minimal amount
value without subquery? If there is no better solutios, that's fine, just a little bit sad. :)
My first solution is like this (I don't like subquery)
SELECT * FROM transactions
WHERE wallet_id = 148
AND amount = (SELECT MIN(amount) FROM transactions WHERE wallet_id = 148)