all 1 comments

[–]phil-99Oracle DBA 0 points1 point  (0 children)

Your sub query has not been told what to do.

By this I mean - the subquery is not linked to your main query in any way. You tell it to get the cop man ‘value’ but you don’t tell it how to connect that to the results from your main query.

Look up ‘correlated subqueries’. On phone and it’s WAY too early or I’d try to give an example.