| Author |
query database/output count and summation to servlet?
|
Nicole Jones
Greenhorn
Joined: Mar 18, 2011
Posts: 19
|
|
I have this database query that adds the total dollar amount by funder and counts the number of projects per funder. obviously, neither the total or the count is stored in my database....should it be? because how would i access the count and total from a servlet if neither are stored the database?
here is my query:
Any help will be greatly appreciated.
|
 |
Nicole Jones
Greenhorn
Joined: Mar 18, 2011
Posts: 19
|
|
Nevermind, doh. I figured it out.
This is the desired query:
code to set the alias columns:
|
 |
Paul Clapham
Bartender
Joined: Oct 14, 2005
Posts: 16487
|
|
Yep, that should work fine. Here's another method which doesn't require aliases for the computed columns:
(The columns are numbered from left to right in the query, starting at 1.)
|
 |
 |
|
|
subject: query database/output count and summation to servlet?
|
|
|