» Quick Links
You can make money on these forums
We Share profits with you
Google
Google Adsense
Google Adwords
YPN
Yahoo
MSN Search
Web Directories
Web Hosting
Web Hosting Offers
Hosting News
Suggestions
Link Building
Domain Names
PHP Forums
MySQL Forums
» More Links
OSP News
Reseller Hosting
Shared Hosting
Dedicated Servers
Google Adsense
Search Engine Marketing
Link Development
Affiliate Marketing


» Advertising
Multiple DC PR Check

Free SEO Tools


Go Back   Webmaster Forums > Website Developement / Programming > MySQL Forums

MySQL Forums Share Your Ideas and Tips about MYSQL. Ask questions about MYSQL. Table Design and Much More...

Reply
 
Thread Tools Display Modes
  #1  
Old 08-15-2006, 03:15 PM
shakiel shakiel is offline
Junior Member
 
Join Date: Aug 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
shakiel is on a distinguished road
Default Intersect - SQL query help

Hi friends

I'm stuck on how to write this query. I'm a noob so go easy on me:

SELECT `pollselection`, count( * ) votes
FROM info
GROUP BY `pollselection`
ORDER BY number DESC

Provides a count for how many times a poll selection was voted for. But I want to count only DISTINCT / unique ip addresses, not someone who voted twice. So I also have:

SELECT DISTINCT `ip`
FROM info

How do I combine the latter with the former?
Good day all -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Revenue Sharing Ads ( ?):
  #2  
Old 08-15-2006, 03:16 PM
wilkinson wilkinson is offline
OSP Starters
 
Join Date: Jul 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
wilkinson is on a distinguished road
Default

If the poll offers choice A and choice B and you have the same IP address voting for both which one do you choose to count?

what if it was two different people using a computer at say a library so they would end up with the same IP. why would you reject one vote and not the other? -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Query Browser wrap SQL. Janiya MySQL Forums 1 08-09-2006 06:16 AM
DiscountASP.NET Launches SQL Database Transfer Tool outsourcingplans Web Hosting News 0 08-09-2006 04:23 AM
DiscountASP.NET Introduces New Services outsourcingplans Web Hosting News 0 08-08-2006 07:42 AM
Query works on production but not on testing server parore MySQL Forums 1 07-31-2006 04:11 PM
Re-invent Launches Free SQL 2005 Hosting outsourcingplans Web Hosting Industry 0 04-24-2006 08:41 PM


All times are GMT. The time now is 12:27 PM.