What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Why wont this mySQL query wont work?

Why wont this mySQL query wont work?
Author: Message:
Mike
Elite Member
*****

Avatar
Meet the Spam Family!

Posts: 2795
Reputation: 48
32 / Male / Flag
Joined: Mar 2003
O.P. Sad  Why wont this mySQL query wont work?
code:
SELECT MAX(ID), `artist`, `title` FROM `historylist`

It says:
quote:
Originally posted by mySQL Error
#1140 - Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause

I tried doing something like that:
code:
SELECT MAX(ID), `artist`, `title` FROM `historylist` GROUP BY `ID`
but it didnt just show that Max(ID), it also showed other IDs, with wrong artists and titles...

Anyone help please? :)

Thanks.
YouTube closed-captions ripper (also allows you to download videos!)
09-14-2005 07:08 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Why wont this mySQL query wont work? - by Mike on 09-14-2005 at 07:08 PM
RE: Why wont this mySQL query wont work? - by wj on 09-14-2005 at 08:24 PM
RE: Why wont this mySQL query wont work? - by RaceProUK on 09-14-2005 at 08:26 PM
RE: Why wont this mySQL query wont work? - by Mike on 09-15-2005 at 09:18 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On