here is the query, i want to use case statement with count function in oracle.
Select case when count(*) > 0 then 'doSomething' else 'doSomething'
from student where student_name='faizan ahmed' and student_father='ahmed' and UPPER(student_dob)=UPPER('01-FEB-19');
please help me out, using plsql code.
ORA-00905: missing keyword 00905. 00000 - "missing keyword"
END
at the end of yourCASE
expression. – Tim Biegeleisencase when count(*) > 0 then 'doSomething' else 'doSomething' end
– Tim Biegeleisen