mysql - Query with two NOT IN subqueries -
is possible have query 2 not in on 2 subqueries:
select u.feedbackid user_feedback u u.feedbackid not in ( select feedbackid user_feedback_sent) , not in (select feedbackid user_feedback_received)
the query throws error on second not in saying incorrect syntax.
you're missing column name shuold not in second subquery. works need:
select u.feedbackid user_feedback u u.feedbackid not in (select a.feedbackid user_feedback_sent a) , u.feedbackid not in (select b.feedbackid user_feedback_received b)
identation practice implement when writing sql code.
hope helps
Comments
Post a Comment