abs0lut Posted August 4, 2008 Share Posted August 4, 2008 I need to select userid from tblusers that is not in tbltopics. could you please help me? Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted August 4, 2008 Share Posted August 4, 2008 something like SELECT T1.UserID as UserID FROM `tblusers` as T1 WHERE T1.UserID !IN(SELECT UserID FROM `tbltopic`) Quote Link to comment Share on other sites More sharing options...
fenway Posted August 6, 2008 Share Posted August 6, 2008 something like SELECT T1.UserID as UserID FROM `tblusers` as T1 WHERE T1.UserID !IN(SELECT UserID FROM `tbltopic`) Not really. You need to use a LEFT JOIN... IS NULL... but we'll need the table structure to be sure. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.