Forum Moderators: open
here's my SQL :
select Q4 QSTN,
Q2 UNT,
QMP_1 MLPLN,
Q4, COUNT(1) CNT
from DSsurvey
GROUP BY QSTN
---------------------------------------
My results :
"QSTN""UNT""MLPLN""Q4""CNT"
\N\N\N\N"24"
"0""1""2""0""5"
"1""2""1""1""155"
"2""1""3""2""329"
"3""2""1""3""198"
"4""1""1""4""47"
"5""1""1""5""12" [/pre]
----------------------------------------
What I want is, within all the QSTN=5 results, a listing and count of all the possible combinations.
For example:
QSTN UNT MPLN CNT
5 1 2 3
5 2 1 4
5 1 1 2 ...etc
you see? so that for every QSTN=5, you see all the different factors and can count them up. Rather than the results I get above, where 1 line of data output is QSTN=5 with a total count of 12.
Thanks, B