Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
oriondpd
Starting Member
7 Posts |
Posted - 2009-11-13 : 08:24:45
|
I am attempting to create an "activity" type report; number of records created by type of record for a time frame. The dataset returns the correct values but I cannot determine how to reference the various return values when plugging them into the page layout on the report. For example: Select salestype,count(*) from x where y group by salestype gives me a table that has the sales type value and the number of records counted for each type.When I go to page layout and create a text box and use "expression" I only see SUM(!fields.salestype,....) I don't see any way to reference the returned value for any of the counts associated with a specific salestype. I want to be able to display the various counts by sales type that came back in the dataset.Any hints or examples? |
|
webfred
Master Smack Fu Yak Hacker
8781 Posts |
Posted - 2009-11-13 : 08:27:48
|
I think count(*) AS ALIAS_NAME_FOR_COUNTER_HERE should help. No, you're never too old to Yak'n'Roll if you're too young to die. |
|
|
|
|
|