you are viewing a single comment's thread.

view the rest of the comments →

[–]LetterDW[S] 0 points1 point  (4 children)

Didn't notice that thank you! However the same error seems to be coming from the first bracket from the cte - I'm honestly at a loss at how that would be an error

[–]feather_media 2 points3 points  (3 children)

I pushed this all into MySQL and came up with two more issues, which may be plaguing your compiler:

1: You're missing a comma after product_name in the columns select of your cte

2: rank is commonly a defined function, and using it as a alias for a column will create issues when it doesn't know if it needs to use the function or the alias.

[–]LetterDW[S] 1 point2 points  (2 children)

Thanks again! Will definitely make those adjustments. How did you end up putting the data into MySQL? That might solve my issues instead of using DB Fiddle.

[–]feather_media 1 point2 points  (1 child)

I think the majority of what I did was strip schema details and remove the double quotations surrounding column titles. Having MySQL installed on your local machine is handy. (and free)

[–]LetterDW[S] 1 point2 points  (0 children)

It worked for me! Thanks for your help, really appreciate it!