MySQL Forums
Forum List  »  InnoDB

Help with database query #1064 - You have an error
Posted by: Admir Mugri
Date: April 21, 2014 11:26AM

I am doind this query

UPDATE trans t
JOIN accounts ON(t.user_id = a.id)
JOIN
(SELECT user_id FROM trans GROUP BY user_id HAVING SUM(amount) > 0.00005460 ) tt
ON(tt.user_id = a.id)
GROUP BY a.id
SET t.paidout=1

and i get this error

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'GROUP BY a.id SET t.paidout=1' at line 6

Any help would be apreciated

Options: ReplyQuote


Subject
Views
Written By
Posted
Help with database query #1064 - You have an error
1532
April 21, 2014 11:26AM


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.