Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COUNT() Function
Message
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
01114075
Message ID:
01114098
Views:
15
There was nothing to misunderstand because you never explained before what result you realy wanted. :)

>No, no. You misunderstand. But I found the solution.
>
>I am trying to return a cursor with the count of the number of records in each group.
>
>Instead of:
>
>
>1	2006-01-03 00:00:00.000	0	135	WEST	1
>2	2006-01-03 00:00:00.000	0	135	WEST	1
>3	2006-01-03 00:00:00.000	0	135	WEST	1
>4	2006-01-03 00:00:00.000	0	135	WEST	1
>5	2006-01-03 00:00:00.000	0	135	WEST	1
>
>
>I want back:
>
>
>1	2006-01-03 00:00:00.000	0	135	WEST	5
>
>
>
>The solution was to remove the Id column.
>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform