From_date and to_date issue [message #405939] |
Mon, 01 June 2009 01:14 |
niopin
Messages: 5 Registered: June 2007 Location: Pune
|
Junior Member |
|
|
I need to generate a report where i ll check date parameter
by using between parameter
If using is not giving from date and to date it should not check for the date what query should i write?
select
em.emp_no,
a.lvr_no,
from lvr_leave_detail a,
lvr_master b,
employee_master em
where b.lvr_no = a.lvr_no
and em.emp_no = b.emp_no
and b.start_Date between :frmdate and :todate
and a.leave_type_code = 'S'
and em.company_code = :company_code
and em.company_code = b.company_code
and b.company_code = a.company_code
[Updated on: Mon, 01 June 2009 01:23] by Moderator Report message to a moderator
|
|
|
|
|
|
|