B
Blubba
ok i have 2 tables: person, and answers.
person has personid;
answers has personid, questionid, answerid.
now i need a report to look like the following:
personid----ques1ans1----ques1ans2-----quest2ans1----ques2ans2, etc
1 0 1 1 0
2 1 0 0 1
so you can see the report shows all the possible answers for all the
questions, and shows a 1 if the person picked that response, and 0 if
they didn't.
can someone help me with this query? i can't change the database
design, and would really like to avoid looping through the person
records and doing sub queries.
person has personid;
answers has personid, questionid, answerid.
now i need a report to look like the following:
personid----ques1ans1----ques1ans2-----quest2ans1----ques2ans2, etc
1 0 1 1 0
2 1 0 0 1
so you can see the report shows all the possible answers for all the
questions, and shows a 1 if the person picked that response, and 0 if
they didn't.
can someone help me with this query? i can't change the database
design, and would really like to avoid looping through the person
records and doing sub queries.