-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix typo in name of manufacturers report SQL file
- Loading branch information
1 parent
281a73c
commit 9d1bb76
Showing
12 changed files
with
48 additions
and
25 deletions.
There are no files selected for viewing
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
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
16 changes: 16 additions & 0 deletions
16
src/FlightRecorder.BusinessLogic/Sql/ManufacturerStatistics.sql
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
SELECT ma.Name, | ||
COUNT( DISTINCT s.Id ) AS "Sightings", | ||
COUNT( DISTINCT f.Id ) AS "Flights", | ||
COUNT( DISTINCT l.Id ) AS "Locations", | ||
COUNT( DISTINCT ai.Id ) AS "Aircraft", | ||
COUNT( DISTINCT m.Id ) AS "Models" | ||
FROM AIRLINE a | ||
INNER JOIN FLIGHT f ON f.Airline_Id = a.Id | ||
INNER JOIN SIGHTING s ON s.Flight_Id = f.Id | ||
INNER JOIN LOCATION l ON l.Id = s.Location_Id | ||
INNER JOIN AIRCRAFT ai ON ai.Id = s.Aircraft_Id | ||
INNER JOIN MODEL m ON m.Id = ai.Model_Id | ||
INNER JOIN MANUFACTURER ma ON ma.Id = m.Manufacturer_Id | ||
WHERE s.Date BETWEEN '$from' AND '$to' | ||
GROUP BY ma.Name | ||
ORDER BY ma.Name ASC; |
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
2 changes: 2 additions & 0 deletions
2
src/FlightRecorder.Data/Migrations/20230604080114_countries.cs
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
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
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
11 changes: 3 additions & 8 deletions
11
src/FlightRecorder.Entities/DataExchange/FlattenedAirport.cs
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
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
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
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
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