mysql - Performing a Sum of COUNT after GROUP BY and HAVING COUNT > 1 -
I have the following query, which I have to submit the calculation table for any count of more than 1. I definitely want to do this:
Selection number (id) count, id, location_id, time, weekofiefer (time) from table where weekofyear (time) = '28' Group Location_id, ID being calculated as & gt; Count Number <1 Order <1 Result:
Count id location_time time weekfire (time) 5 32265 409 7/12/14 3:58 28 5 32266 409 7/12/14 3:59 28 5 27532 39 9 7/12/14 4:54 28 4 31124 41 7/7/14 4:41 28 So I
"post-text" itemprop = "text"> A simple subtitle should do this with your own inquiry: < From the pre> SELECT SUM (t.count) (selection number (id) count, id, location_id, time, weekday (time) from table where weekofyear (time) = '28' place_degroup, id Hoan Due to the cause & gt; 1) T as
Comments
Post a Comment