I don’t understand this exercise at all and am completely lost. I understand what we are trying to accomplish, but the example given is very vague. Can somebody please give a line-by-line break down in simple terms?
Note, I’m referring to the code from the example given and NOT from what they are asking us to do
<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.>
SELECT carrier, id, (SELECT COUNT(*) FROM flights f WHERE f.id < flights.id AND f.carrier = flights.carrier) + 1 AS flight_sequence_number FROM flights ORDER BY flight_sequence_number;
<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>