Hai,
I have to check the date and time ovarlapping through my query,
The problem is suppose in DB
RECORD IN DB
Startdate End Date
2008-12-01 09:00:00.0 2008-12-01 12:00:00.0
My input
2008-12-01 09:00:00.0 2008-12-01 12:00:00.0 ->date Between given input this working fine i will show the record is duplicate
My input -2
2008-12-01 08:00:00.0 2008-12-01 13:00:00.0 ->
The query i am using show it is not between
My Query is
SELECT STARTDATE,ENDDA TE FROM PRONDUTYCOMPOFF
WHERE
STATUS NOT IN('NULLIFIED') AND (? BETWEEN STARTDATE AND ENDDATE OR
? BETWEEN STARTDATE AND ENDDATE)
Please help me dont bother about status
I have to check the date and time ovarlapping through my query,
The problem is suppose in DB
RECORD IN DB
Startdate End Date
2008-12-01 09:00:00.0 2008-12-01 12:00:00.0
My input
2008-12-01 09:00:00.0 2008-12-01 12:00:00.0 ->date Between given input this working fine i will show the record is duplicate
My input -2
2008-12-01 08:00:00.0 2008-12-01 13:00:00.0 ->
The query i am using show it is not between
My Query is
SELECT STARTDATE,ENDDA TE FROM PRONDUTYCOMPOFF
WHERE
STATUS NOT IN('NULLIFIED') AND (? BETWEEN STARTDATE AND ENDDATE OR
? BETWEEN STARTDATE AND ENDDATE)
Please help me dont bother about status
Comment