If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

passing variable in like clause???

i've tried this codes but it doesn't work..

select sum((end_date-start_date+1)*(basic_sal/20))
into :xtra.unpaid_leave
from leave_appl,emp_mast
where emp_mast.emp_id=leave_appl.emp_id and
emp_mast.emp_id=:global.emp_id and
status='approved' and
type='unpaid'and
la_date like '%":xtra.mont"%';