Seat Type Quantity left
Business 23
Economy 27
First 15
Total quantity left : ?
数据库管理系统 = MySQL
我尝试了以下 SQL 来打印上述信息
$sql = "SELECT SeatType, COUNT(SeatType)AS quantity
FROM seat
WHERE SeatAvailable = 'Yes'
GROUP BY SeatType
";
我如何总结剩余的总量(例如:23+27+25)?感谢您在高级...