- Posts: 9
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
Please Log in to join the conversation.
$survey=113161; $tbl_daten='lime_survey_'.$survey; $tbl_timing='lime_survey_'.$survey.'_timings'; $col_name=$survey.'X42X545'; $col_dob=$survey.'X42X546'; $col_gender=$survey.'X42X554'; $col_schul=$survey.'X42X547'; $col_taet=$survey.'X42X548'; $col_erf=$survey.'X42X549'; $col_upload=$survey.'X43X550'; $col_cv=$survey.'X43X551';
$daten1=DB::query("SELECT {$col_gender},count({$col_gender}) as gender FROM {$tbl_daten} WHERE lastpage=36 GROUP BY {$col_gender}"); $daten2=DB::query("SELECT {$col_gender}, SUM(IF({$col_age} BETWEEN 18 and 24, 1, 0)) AS A1, SUM(IF({$col_age} BETWEEN 25 and 34, 1, 0)) AS A2, SUM(IF({$col_age} BETWEEN 35 and 44, 1, 0)) AS A3, SUM(IF({$col_age} BETWEEN 45 and 54, 1, 0)) AS A4, SUM(IF({$col_age} BETWEEN 55 and 65, 1, 0)) AS A5 FROM {$tbl_daten} WHERE lastpage=36 GROUP BY {$col_gender}");
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
da ist ExpressionScript doch prädestiniert.Es geht um eine Auswertung auf Individuumsebene um herauszufinden, welche Ergebnisse die betreffende Person hat.
Dann mal nichts wie ran. Es ist nicht so schwer wie es klingt.aber da hab ich einfach gar keine Erfahrung
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.