Hi claudius, 

Danke! Sieht ein bissl einfacher aus, als mein 20-zeilen recordset-loop
monster.
Beim golfen h�tt ich da wohl die rote laterne eingeheimst ;-)

Eines ist mir noch unklar:
Wie krieg ich in dein sql-statement die "parameter" rein?

Also: antwort auf frage1 muss 1 sein UND antwort auf frage2 muss 2 sein
Mit where?

Also
Select ID_FRAGE, Antwort, COUNT(*) as anzahl 
from antworten 
group by ID_FRAGE, Antwort
Where ((id_frage=1 and antwort=1) and (id_frage=2 and antwort=2))

Hab ich das so richtig kapiert? (oder eben nicht?)
Wichtig ist ja, dass die kombination beim jeweils gleichen user
auftritt...

Danke nochmal, thoams

>> F�r eine kreuztabelle m�chte ich jetzt beispielsweise 
>auswerten: "wie 
>> viele user haben frage1 mit '1' beantwortet UND frage2 mit '2' 
>> beantwortet?"
>> 
>
>Select ID_FRAGE, Antwort, COUNT(*) as anzahl from tabelle 
>group by ID_FRAGE, Antwort
>
>Claudius

~~~~~~~~~~~~~~~~~~~~~~~~~~~sponsored by United Planet~~~~~~~~~~~~~~~~~
Kaffeepause im United Planet Communityserver ...
http://www.intrexx.com/communityserver                         
_______________________________________________
Coffeehouse mailing list
[EMAIL PROTECTED]
http://www.glengamoi.com/mailman/listinfo/coffeehouse

Antwort per Email an