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 |
sadiql1
Starting Member
1 Post |
Posted - 2010-06-13 : 16:50:44
|
Hi,I need to develop a cross section report. I am not sure how i can achieve this. Here is how the data is - State, Customer_IDVA, 100MD, 100VA, 150VA, 161MD, 190I would like the output to be in cross tab format where states are represented as cross tab columns and customer count as the data. VA MDVA 3 1MD 1 2Note - the count for VA, MD combination is one because there is only one customer ( id - 100) who represents both MD and VA.I can use the cross tab report but it doesn't give the desired output. It only counts the one with diestict stat i.e. VA MD VA 3 0MD 0 2Please help as my employer wants this report as soon as possible and i have no clue how i can develop this.Thanks!SSL |
|
|
|
|