I have a query like this:
select empno,name
from emp
where job = 'CLERK'
and empno = :empno
If I pass empno that is null I would like to display all the records that match the condition of job = ‘CLERK’. If empno is a specific number then it should filter for job and empno.
Anyway to do this in SQL without using PLSQL?
1 Answer