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. 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 ) 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. 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
Archived
This topic is now archived and is closed to further replies.