Topic awaiting preservation: Let MySQL do some lifting |
|
---|---|
Author | Thread |
Paranoid (IV) Inmate From: 1393 |
posted 02-22-2008 04:41
I've been trying to better utilize mysql for some of the workload on my projects. And I've run into a spot where I'm not sure if it can be done or not. Basically, I've got a table with an ID for groups (not unique) and a flag for finished or not finished (zero or one). What I'm looking to do is select everything where there's 3 or more finished from the same group. So it could go across multiple groups but say if there's only two entries for group "foo" that have finished, "foo" entries are excluded entirely. |
Maniac (V) Mad Scientist with Finglongers From: Germany |
posted 02-22-2008 09:35
sure... |
Paranoid (IV) Inmate From: 1393 |
posted 02-22-2008 21:45
Excellent! I'm going to have to try that first thing tonight... thanks TP! |
Paranoid (IV) Inmate From: 1393 |
posted 02-23-2008 17:18
Hey TP thanks again for your help... This is close but not doing the trick. Just a couple questions. |
Maniac (V) Mad Scientist with Finglongers From: Germany |
posted 02-24-2008 18:04
well, that's not quite how sql aggregation works as far as I know. |
Paranoid (IV) Inmate From: 1393 |
posted 02-25-2008 05:19
quote:
|