Is there a better way (performance or syntax) to write the following mysql query:
Select un.user_id
from user_notifications un
where un.notification_id = 'xxxxyyyyyzzzz'
and un.user_id not in (Select user_id from user_push_notifications upn
where upn.notification_id = 'xxxxyyyyyzzzz') ;
The purpose is to find those user_id which have not been pushed a notification for a certain notification_id
See Question&Answers more detail:os