MySQL Forums
Forum List  »  Newbie

Re: Trouble making formula.
Posted by: Gordon White
Date: May 03, 2016 04:31AM

Right now I could care less what the table looks like.
I want to be able to make an SQL Query work.

The more I read, the less I understand.
I have tried everything I have read, with a lot of confusion. Did what you and others have suggested about trying to come up with a query on my own, but I'm ready to reach through the internet and poke you in the eye, can you tell I'm frustrated.

Here's what I have and all I get is SYNTAX ERRORS.

Please help!!!!

SELECT a.points, b.name, dateid
FROM data a, players b
WHERE a.points BETWEEN 1 AND 7 AND dateid = max(dateid)
GROUP BY a.playersid
JOIN players b
ON a.playersid = b.playersid
GROUP BY b.name
ORDER BY a.points desc

Options: ReplyQuote


Subject
Written By
Posted
May 02, 2016 07:26AM
Re: Trouble making formula.
May 03, 2016 04:31AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.