student results table:
student id, exam id, status
1 10 Failed
1 10 Pass
2 10 Failed
2 10 Failed
1 20 Pass
Write a Query to dispaly the output as follows
studentid exam_id cleared_in_1st_attempt_cnt cleared_in_mutliple_attempts_cnt
1 10 0 2
1 20 1 0
2 10 0 0
Comments (4)

