Created
May 5, 2021 07:30
-
-
Save liangway/b0442529a840a0cdf245c85985d21311 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
Flight.FlightNumber, | |
(SELECT SUM(Passenger.BaggageWeight) | |
FROM Flight | |
INNER JOIN Passenger ON Flight.id = Passenger.FlightId ) | |
FROM Flight | |
GROUP BY Flight.id; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment