All pastes #259328 Raw Edit

Anonymous

public sql v1 · immutable
#259328 ·published 2006-11-27 10:58 UTC
rendered paste body
SELECT 	terminal_id FROM bg_person_answer WHERE   	( question_id = 1 AND answer_id = 1 ) OR	( question_id = 2 AND answer_id = 5 )SELECT a.terminal_id FROM bg_person_answer a, bg_person_answer bWHERE        a.terminal_id=b.terminal_id AND      ( a.question_id = 1 AND a.answer_id = 1) AND      ( b.question_id = 2 AND b.answer_id = 5 )