rethinking question CRUD
This commit is contained in:
@ -6,4 +6,12 @@ select c.id candidate_id
|
||||
from candidates c
|
||||
inner join questions q on q.quiz_id = c.quiz_id
|
||||
left join answers a on a.candidate_id = c.id AND a.question_id = q.id
|
||||
|
||||
where c.test_hash = 'R67PmfDHGiw' -- and q.input_type = 'radio'
|
||||
|
||||
order by c.name, q.sort;
|
||||
|
||||
|
||||
|
||||
-- delete from answers where id = 1008398109
|
||||
|
||||
|
Reference in New Issue
Block a user