You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Query1 = spark.sql("select year, c from (select year, sum(booked_seats) as c from airlines group by year order by c desc) air limit 1")
Query1.show()
Query2 = spark.sql("select year, c from (select year, sum(arps*booked_seats) as c from airlines group by year order by c desc) air limit 1")
Query2.show()
Query3 = spark.sql("select year, quarter, c from (select year, quarter, sum(arps*booked_seats) as c from airlines group by year,quarter order by c desc) air limit 1")