Hello,
Do we have any “LAST” function? The following query is not working, and I want to extract the last limit in each month from each acoount ID .
SELECT
date_trunc(date, month) as Month,
LAST(credit_card_account__limit_range_max) as Credit_Limit
FROM core.credit_card_account_daily_snapshot
GROUP BY Month, account__id
ORDER BY Month