From: Ed Carp Date: March 20 1999 6:49pm Subject: Re: Help with query, plz List-Archive: http://lists.mysql.com/mysql/694 Message-Id: <000b01be7302$6c308300$74c9a8c0@traveler.airmail.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit >On Sa, 1999-03-20 11:25:51 -0700, Thimble Smith wrote: >> COUNT(DISTINCT(...)) doesn't work in MySQL (yet). Try this: >> >> SELECT COUNT(*) FROM table GROUP BY ip; > >Not again! I really wonder why people keep on giving this wrong >answer ...? This is really funny, especially because... > SELECT DISTINCT field FROM table; ...isn't right either! It gives a table of results, not the count, which is what the original poster wanted. Sorry, but thanks for playing.