- or download this
CREATE TABLE respondent (
id unsigned int not null auto_increment primary key
...
,response unsigned int
,PRIMARY KEY (respondent, response)
);
- or download this
SELECT A.respondent AS respondent
FROM responses A JOIN responses B on (A.respondent = B.respondent)
WHERE A.response = ?
AND B.response = ?
- or download this
my $sth = $dbh->prepare_cached( $sql );
$sth->execute( $response_x, $response_y );
...
}
$sth->finish;