Ask a Question related to ASP Database, Design and Development.
-
gotcha #1
Need Asp recordset Group / Count like values
Is there any way to group like objects, then count them in asp. I
have a table with 60,000 + part numbers that I need a total of each
one that is the same. For example.
Table:
000000-cpq
000000-cpq
000000-cpq
000000-cpq
199888-001
199888-001
199888-001
244166-001
Results:
000000-cpq = 4
199888-001 = 3
244166-001 = 1
I can do this in access with a simple group and count, but I need to
do it in asp. Thanks for any help in advance. [email]gil@ambry.com[/email]
gotcha Guest
-
Order by results of count using 'group by'
Hi there, I'm querying a single table with the goal of selecting the number of distinct cities of the field 'city' where the count is greater... -
Count GROUP BY query dilemma
I need help creating a list of items with a corresponding count. I have 3 tables: event staff status I need to list the statuses and count... -
COUNT and GROUP
I have been searching everywhere about using COUNT to display the specific recordcount of part of my query, but I can not figure it out for... -
ASP Group Same Records and Give Total Count
I need to know how to group like parts, then count them in asp. I have a table with 60,000 + part numbers that I need a total of each one that is... -
Group by, count, type of query beyond my ability
Hi group, I can't figure out this query that I want. My database is as such: Table: Articles ArticleID Description -
Bob Barrows [MVP] #2
Re: Need Asp recordset Group / Count like values
gotcha wrote:
The simplest (and most efficient) way to this is to use a group by query to> Is there any way to group like objects, then count them in asp. I
> have a table with 60,000 + part numbers that I need a total of each
> one that is the same. For example.
>
> Table:
> 000000-cpq
> 000000-cpq
> 000000-cpq
> 000000-cpq
> 199888-001
> 199888-001
> 199888-001
> 244166-001
>
> Results:
> 000000-cpq = 4
> 199888-001 = 3
> 244166-001 = 1
>
> I can do this in access with a simple group and count, but I need to
> do it in asp. Thanks for any help in advance. [email]gil@ambry.com[/email]
retrieve the results into asp. Why can't you do this?
Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Bob Barrows [MVP] Guest
-
Aaron [SQL Server MVP] #3
Re: Need Asp recordset Group / Count like values
> I can do this in access with a simple group and count, but I need to
This doesn't make any sense. Can you elaborate?> do it in asp.
--
[url]http://www.aspfaq.com/[/url]
(Reverse address to reply.)
Aaron [SQL Server MVP] Guest



Reply With Quote

