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

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -