Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
anishap
Yak Posting Veteran
61 Posts |
Posted - 2008-09-16 : 19:10:53
|
I have a column called MMREACT with values ranging 0 - 99. MMREACT18992782167110871Is there any way to count the number of 1's,2's 3's upto 99?. |
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
anishap
Yak Posting Veteran
61 Posts |
Posted - 2008-09-16 : 22:01:40
|
Well, I had tried the above query. I want to know how to count rows for change in rows.For exampleMMREACT Count1 102 1610 545 2076 5098 23Can any one help with this?1 |
 |
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2008-09-16 : 22:03:28
|
[code]SELECT MMREACT, COUNT(MMREACT) AS CNTFROM YourTableWHERE MMREACT BETWEEN 1 AND 99GROUP BY MMREACT[/code] KH[spoiler]Time is always against us[/spoiler] |
 |
|
anishap
Yak Posting Veteran
61 Posts |
Posted - 2008-09-16 : 22:21:25
|
Thanks. It is working now. |
 |
|
|
|
|