Structure a query like a pivot table


#1

<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.>
https://www.codecademy.com/courses/sql-table-transformation/lessons/subqueries/exercises/non-correlated-iii?action=lesson_resume

<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.>

```

Replace this line with your code.

<do not remove the three backticks above>
Is it possible to get the data in a different way?  For instance, could you get the data like a pivot table?  Say I want in one axis to have the months of the year and on the other I want the count of flights grouped by origination?  Can that be done? Or would I get one column of months and with another of origination and another of COUNT(*) and do the pivot in Excel?

#2

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