Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 18th, 2005, 06:05 PM
Registered User
 
Join Date: Aug 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to aylmer018
Default Sum up the records in table

Hi Guys I got an iIdea from previous post to show my problem.

below is the result of my query.

 AcctNO | COUNT |
----------------------------------------
11111 | 10 |
11111 | 20 |
11111 | 30 |
11111 | 40 |
22222 | 20 |
22222 | 30 |
22222 | 40 |
22222 | 50 |


heres the result what I want.

 AcctNO | COUNT |
----------------------------------------
11111 | 10 |
11111 | 20 |
11111 | 30 |
11111 | 40 |
Total | 100 |
22222 | 20 |
22222 | 30 |
22222 | 40 |
22222 | 50 |
Total | 140 |

I know it can't be done it SQL command.
how can I Display it in HTML

Thanks



 
Old August 19th, 2005, 01:21 AM
Authorized User
 
Join Date: Jan 2005
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to askenkray
Default

you can do it in SQL.Use Rollup & u will get the desired result in SQL only.
Use do while to print in ASP

Ashwin S.Kenkare
Programmer
CMI
 
Old August 19th, 2005, 12:40 PM
Registered User
 
Join Date: Aug 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to aylmer018
Default

Ashwin,

Great SQL Rollup up works :). I really appreciate your help.

Thanks,
Elmer







Similar Threads
Thread Thread Starter Forum Replies Last Post
Sum of random numbers in a table with XSLT Tschuri XSLT 0 May 8th, 2005 04:14 AM
Placing a computed sum in a table field cuzintone SQL Language 1 April 15th, 2005 05:02 AM
Update parent table with the sum of child table gbrown SQL Language 2 November 9th, 2004 07:53 AM
copy and append records from table-A to table B bhunter Access 6 March 9th, 2004 02:02 PM
thousands records enter one table to another table mateenmohd SQL Server 2000 3 July 17th, 2003 07:52 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.