Date Flight ID Member ID Seat Type Seat Price
2013-07-28 F71498 M69202 Business RM 40.00
F73591 M69202 First RM 50.00
M69202 First RM 50.00
F71498 M37520 Business RM 40.00
M69202 Business RM 40.00
===============
Total : ??
===============
次のSQLを試しました
SELECT
r.ReservationDate, r.FlightID, r.MemberID, s.SeatType, s.SeatPrice
FROM
flight f, reservation r, seat s, member m
WHERE
r.FlightID = f.FlightID
AND r.SeatID = s.SeatID
AND r.MemberID = m.MemberID
AND ReservationDate = '2013-07-28'
AND s.FlightID = f.FlightID
必要に応じて上記のレポートを生成できますが、合計の合計SeatPrice
を計算する方法を教えてください。合計の数え方を教えてください。高度なThx ... =)