Use
select dept_payin_no INTO DEPT_PAY from post_treasury_copy
where to_date(payin_date,'DD-MON-YY') = to_date(payin_date,'DD-MON-YY')
where rownum = 1
would work if you are sure you have one and only one value based on that date.
|
Results 1 to 5 of 5
Threaded View
|
Click Here to Expand Forum to Full Width |