db=# SELECT account, ((ARRAY_AGG(data ORDER BY happened_at DESC) FILTER (WHERE type = 'credit_set'))[1] -> 'credit')::int AS credit FROM ...
確定! 回上一頁