Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
合計金額を照会するための最良の方法は何ですか?
複数の数値を乗算し、データベース内の複数の顧客の結果を$で表示したいですか?
ありがとう
みたいな意味ですか?
SELECT u.user_id, sum(o.total_price) FROM users u INNER JOIN order o ON u.user_id = o.user_id GROUP BY u.user_id