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 `contract_fine` AS TotalFine FROM `contract` NATURAL JOIN `rented_vehicle` WHERE `contractID` = 3;
これは数値の行を返します。それらを一緒に追加するにはどうすればよいでしょうか。それができないようです。
SELECT SUM(`contract_fine`) AS TotalFine FROM `contract` NATURAL JOIN `rented_vehicle` WHERE `contractID` = 3;
それはとても簡単です。