Created
October 14, 2009 09:18
-
-
Save madx/209914 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 NumPil, NumAv | |
FROM Vols | |
WHERE NumPil IS NOT NULL AND NumAv IS NOT NULL | |
GROUP BY NumPil, NumAv | |
ORDER BY NumPil; |
This file contains hidden or 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
AVIONS (#NumAv, NomAv, CapAv, VilleAv) | |
PILOTES (#NumPil, NomPil, NaisPil, VillePil) | |
VOLS (#NumVol, VilleD, VilleA, DateD, DateA, NumPil, NumAv, CoutVol) |
This file contains hidden or 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 NumPil, COUNT(*) | |
FROM ( | |
SELECT NumPil, NumAv | |
FROM Vols | |
WHERE NumPil IS NOT NULL AND NumAv IS NOT NULL | |
GROUP BY NumPil, NumAv | |
ORDER BY NumPil | |
) | |
GROUP BY NumPil; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment