-
-
Save ldenson11/29908090210e41b9ef60d9b2a5e7c4b0 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
-- find the latest complete picture of | |
-- tailnumber A264A4 | |
SELECT icao, | |
HOP_END(ts, interval '1' minute, interval '15' minute) AS timestamp, | |
MAX(lat) as latitude, | |
MAX(lon) as longitude, | |
AVG(altitude) as altitude, | |
AVG(speed) as speed | |
FROM adsb_source | |
WHERE icao = 'A264A4' | |
GROUP BY icao, HOP(ts, interval '1' minute, interval '15' minute) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment