Posts: 1,832
Location: Somewhere else entirely
|
You are grouping on two columns, so every group turns out to be unique (ie it counts 1 69 and 1 71 as different groups cos the second ID is different).
Even if you wen to only one column it probably wouldn't work, and instead come out
2 1 71
2 3 67
1 7 68
1 8 72
1 9 73
1 10 74
1 11 75
This is because count(*) is there to tell you how many of some group there are, not how many there have been so far. Depending on how your script handles these results, I would just loop through the results and keep a counter in PHP/ASP, that I reset if the branch id is different to last time.
__________________
UPDATE 0beron SET talkupation = talkupation + lots WHERE post = 'helpful';
Please login or register to view this content. Registration is FREE (aka MSN handwriting for forums)
|