TheJoey Posted September 16, 2009 Share Posted September 16, 2009 Hey Guys, Just wondering if i had a database that stored information of users that partipate in a poll. The question i have is what is the basics for writing a SQL querry to find out the registered users who have not voted in the poll. Just wondering if this can be done. Quote Link to comment https://forums.phpfreaks.com/topic/174411-solved-need-help-creating-a-sql-querry/ Share on other sites More sharing options...
artacus Posted September 16, 2009 Share Posted September 16, 2009 SELECT * FROM users WHERE user_id NOT IN ( SELECT user_id FROM votes WHERE poll_id = 1 ) Quote Link to comment https://forums.phpfreaks.com/topic/174411-solved-need-help-creating-a-sql-querry/#findComment-919324 Share on other sites More sharing options...
TheJoey Posted September 16, 2009 Author Share Posted September 16, 2009 Thank you so much works a treat. Quote Link to comment https://forums.phpfreaks.com/topic/174411-solved-need-help-creating-a-sql-querry/#findComment-919543 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.