Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

mysql where sum > 0

 SELECT user.id, CONCAT(lastname, firstname), year, month, date FROM user
LEFT JOIN adoption ON user.id = adoption.adopter
GROUP BY user.id
HAVING SUM(CONCAT(year,month,date) = '2016618') = 0
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #mysql #sum
ADD COMMENT
Topic
Name
9+3 =