I am trying to get a list of User IDs (UIDs) that have posted more than 3 articles. Here's my SQL:
Select COUNT from n.uid by node group (n.type = 'article') & gt; 3 After reading something, I am guessing my mistake that I am with the use of COUNT, but I do not know what I am doing wrong. Any sign? Thanks Stack!
more like ...
SEID UID FROM node WHERE Type = 'Articles' Group by UID Hoving COUNT (UID) & gt; 3 Edit : I WHERE vs. I'll add a bit more information on HAVING . As far as I can remember, the use of hoisting is done to implement the group BY conditions after the aggregation. WHERE is usually used to apply the conditions in the table.
Comments
Post a Comment