Here is my table [answer] and [student_answer]
create table answer(
varchar2(10) ques_id,
varchar2(10) ans,
primary key (ques_id)
);
create table student_answer(
varchar2(10) stud_id,
varchar2(10) quiz_id,
varchar2(10) ques_id,
varchar2(10) ans,
number(3) mark,
primary key (stud_id,quiz_id,ques_id)
);
UPDATE student_answer
SET mark = 1
WHERE * IN (select ques_id, stud_id, quiz_id from answer m
right outer join student_answer sa
on (sa.ques_id = m.ques_id and sa.ans=m.ans)
where m.ques_id is not null
order by sa.ques_id);
*i got confused here
how can i get multiple row output per subquery? so that i can update a table according to the result?
* every student have different id
* every quiz have different id
* every question have different id