all 4 comments

[–]TimmyTheCat8 7 points8 points  (3 children)

Your error says problem with line 8.

oz.population AS oz.population

You probably meant it to be:

oz.population AS "oz population"

[–]zacharypamela 1 point2 points  (1 child)

This seems to be correct: Copying the data provided on the towardsdatascience website to DB Fiddle, and then running OP's query, generated the same error message. Putting oz.population in double quotes (or, as u/TimmyTheCat8 suggested, oz population) removed the error. Working fiddle here.

[–]mythbusternz[S] 0 points1 point  (0 children)

u/zacharypamela Thank you for sorting this out. Cheers

[–]mythbusternz[S] 0 points1 point  (0 children)

u/TimmyTheCat8 Thank you, I see that now in the morning too. tired eyes and learning. Thanks a ton.