前提・実現したいこと
group byして出した表にあるこのtotal_amountというカラムの
合計値を求めたいのですが、その場合はどうSQLを書けば求められますか?
該当のソースコード
sql
1SELECT total_amount, order_date 2FROM `sales_data` 3where order_date like '%2018-12-09%' 4group by order_id, cancel_id, shop_id
回答2件
あなたの回答
tips
プレビュー