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;”

<PLEASE USE THIS TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>

<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>

<In this course, it often helps to include a screenshot of your whole web browser – that lets everyone see what you see. If you wish to include a screenshot, add it below this line.>

<If you wish to copy/paste in your code, you can use this next section. This will allow others to copy/paste your code for testing – something that they won’t be able to do with just a screenshot.>

```

Replace this line with your code.

<do not remove the three backticks above>

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

1 Like

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