DotNetGnat
Programmer
Ok guys,
let me try to explain the situation.
Lets suppose i have the following table:
saleID | saleCounty | saleZip | saleNumber
__________________________________________
1 | blah1 | 25252 | 2
2 | blah2 | 25253 | 1
3 | blah3 | 25254 | 3
4 | blah4 | 25255 | 2
5 | blah1 | 25252 | 5
6 | blah2 | 25253 | 2
7 | blah5 | 25256 | 1
8 | blah5 | 25256 | 2
9 | blah6 | 25257 | 1
10 | blah6 | 25257 | 4
Now how can i provide a dynamic interface to the users
who can slice and dice the results according to the
variables they want.
what i mean is like creating pivot tables(as in MS Excel)
depending upon the variables.
one example scenario...user wants to see by salecounty and by saleNumber
then the results will look something like this:
saleCounty | SaleNUmber
blah1 | 7
blah2 | 3...and so on...yeah i can just use count and group by to get that
but the users can come up with many scenarios...and the results should be
based on that...
one more scenario...salesCounty and number of sales split by months or years...ofcourse i have a date field too...i have just simplified..
something like this
Jan 05 | Feb 05|
blah1 | 1 | 3 |
blah2 | 2 | 0 |
i am just wondering whether can something like this be done or not using ASP. or is there any other way of doing this....
Thanks for any insight...
-DNG
let me try to explain the situation.
Lets suppose i have the following table:
saleID | saleCounty | saleZip | saleNumber
__________________________________________
1 | blah1 | 25252 | 2
2 | blah2 | 25253 | 1
3 | blah3 | 25254 | 3
4 | blah4 | 25255 | 2
5 | blah1 | 25252 | 5
6 | blah2 | 25253 | 2
7 | blah5 | 25256 | 1
8 | blah5 | 25256 | 2
9 | blah6 | 25257 | 1
10 | blah6 | 25257 | 4
Now how can i provide a dynamic interface to the users
who can slice and dice the results according to the
variables they want.
what i mean is like creating pivot tables(as in MS Excel)
depending upon the variables.
one example scenario...user wants to see by salecounty and by saleNumber
then the results will look something like this:
saleCounty | SaleNUmber
blah1 | 7
blah2 | 3...and so on...yeah i can just use count and group by to get that
but the users can come up with many scenarios...and the results should be
based on that...
one more scenario...salesCounty and number of sales split by months or years...ofcourse i have a date field too...i have just simplified..
something like this
Jan 05 | Feb 05|
blah1 | 1 | 3 |
blah2 | 2 | 0 |
i am just wondering whether can something like this be done or not using ASP. or is there any other way of doing this....
Thanks for any insight...
-DNG