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 |
|
asifbhura
Posting Yak Master
165 Posts |
Posted - 2006-06-29 : 08:51:17
|
| I have one tableit contains a lot of rows with different different category idi want to count rows for each category.exapmplefor education category it contains 20 rows.for health catgory it contains 12 rows.and so on.i want query which count rows for each category |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2006-06-29 : 08:53:20
|
| Read about Cross-tab Reports in sql server help fileMadhivananFailing to plan is Planning to fail |
 |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2006-06-29 : 08:58:27
|
| [code]SELECT CategoryID, COUNT(*)FROM OneTableGROUP BY CategoryID[/code]Peter LarssonHelsingborg, Sweden |
 |
|
|
|
|
|