メニューの編集
PostgreSQL
日別や月別などで集計をかけたいた場合に使用するSQLです。
select p_date,sum(p_price) from payment_tbl group by p_date order by p_date desc