Skip to content

Commit

Permalink
Gabriel: aircrafts page
Browse files Browse the repository at this point in the history
  • Loading branch information
gpivaro committed Dec 11, 2020
1 parent fec3d45 commit bbda3a2
Show file tree
Hide file tree
Showing 11 changed files with 5,649 additions and 11 deletions.
12 changes: 12 additions & 0 deletions Database/aircraft_query.sql
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,15 @@ SELECT
FROM
project_2.aircraft_data
GROUP BY FROM_UNIXTIME(time, '%Y-%m-%d %H');



SELECT DISTINCT
icao24,
AVG(velocity) AS averageVelocity,
COUNT(id) AS totalNum
FROM
project_2.aircraft_data
GROUP BY icao24
ORDER BY averageVelocity DESC
LIMIT 10;
Loading

0 comments on commit bbda3a2

Please sign in to comment.