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 |
tngtng
Starting Member
7 Posts |
Posted - 2010-03-18 : 11:20:31
|
Hi,I’d like to explore a survey result with filters. My result table is like this:Answer Question1 Q2 Q3 … Qi QnPerson 1 1 0 2 … P2 2 2 3 … … Pm With accompanied tables :Q1 N° answer Answser 0 Without Opinion1 Yes2 NoQ2N° answer Answser0 <20 years old1 20-30 years old2 30-40 years old3 40-50 years old4 50-60 years old5 >60 years old…QnN° answer Answser0 Without Opinion1 <15 mn2 15-30mn3 30-45 mnExploiter can choose one or many filters in no order & see the result. I don’t have any idea about how to do (overview, organization, etc.) & how to write sql request, something like:Foreach Q2.referenceSelect count(*) from (for each Q1) The pb is I don’t see any relationship between tables. Please help me! Thanks in advance |
|
|
|
|