Skip to content

Commit 9843bb2

Browse files
Update README.md
1 parent 715a6c0 commit 9843bb2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
11
# database
2+
MATCH (f:Flight)-[:OPERATED_BY]->(a:Airlines)
3+
WITH a.id AS airline_code, a.airline AS airline,
4+
COUNT(CASE WHEN f.delay_id <> 'N' THEN 1 END) AS delayed,
5+
COUNT(*) AS total_flights
6+
RETURN airline_code, airline, delayed, total_flights, (toFloat(delayed) / total_flights) * 100 AS `Delay percentage (%)`
7+
ORDER BY (`Delay percentage (%)`) desc
8+
LIMIT 5

0 commit comments

Comments
 (0)