Lesson 4/7 Table transformation


What does "select a.dep_month" mean? I just study select dep_month. Please help me!

"select a.dep_month, a.dep_day_of_week, avg(a.flight_count) as average_flights
from (select dep_month, dep_day_of_week, dep_date, count (*) as flight_count from flights group by 1, 2, 3)
a group by 1, 2
order by 1,2;"

Replace this line with your code.


Also stuck here. what does 'a' stand for? To get the flight_distance do I sum or count..


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.