I have a Table from that want to get records on the bases of gender and score like if the score is more than 70 than male data will display else female data for this i want to use case statement. mysql query is
select Parent_Id,Emp_Id,Emp_Gender,Emp_Score from EVENT_DETAIL where
Emp_Score = (case when Emp_Score > '70' then (select * from EVENT_DETAIL
where Emp_Gender = 'Male') else (select * from EVENT_DETAIL where
Emp_Gender = 'Female') end);
but in this am getting error of operand should contain 1 column