Say I have a table \"transactions\" that has columns \"acct_id\" \"trans_date\" and \"trans_type\" and I want to filter this table so that I have just the last transaction f
SELECT acct_id, trans_date, trans_type
FROM transactions a
WHERE trans_date = (
SELECT MAX( trans_date )
FROM transactions b
WHERE a.acct_id = b.acct_id
)