Skip to content
Advertisement

How do I fix a select statement in the join in Athena?

This query was working in Redshift but isn’t in Amazon Athena:

The error message is:

The error says “t2.date” is the problem, is it because I am selecting the table in left join?

How do I get this SQL to work in Athena?

Any insight would be appreciated.

Advertisement

Answer

If the date field is causing problems (as suggested by @Deepstop), you can try:

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement