rethinking question CRUD

This commit is contained in:
Mark Moser
2016-07-31 18:54:12 -05:00
parent ace9b864d3
commit dfd582d251
11 changed files with 172 additions and 74 deletions

View File

@ -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