Skip to content
Advertisement

PostgreSQL: Using CTE with IN

Learning CTE right now, the following query is super basic and it doesn’t really have any useful value but I don’t understand why it doesn’t work

The error I’m getting is “ERROR: column “cte_actors” does not exist”

Currently using postgres 14 and DBeaver

Advertisement

Answer

You need to SELECT from the CTE:

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