Skip to content
Advertisement

How can I turn this query that uses a join statement into a query that uses a subquery?

I’m given the query

and told to rewrite it using a subquery. I tried writing

but I get an error saying the column isn’t recognized?

Advertisement

Answer

You are trying to access sub-query (or inner query) table’s column outside and hence the error.

Please try this:

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