karlomutschler
Programmer
Hi
the Query looks like this
SELECT *
FROM tablename
WHERE activ_date BETWEEN '2001/03/01' AND '2001/03/31'
AND deactive_date > '2001/05/01' ;
Result is correct !
If the WHERE-Clause is extended to read
WHERE activ_date BETWEEN '2001/03/01' AND '2001/03/31'
AND deactive_date > '2001/05/01'
OR deactive_date IS NULL ;
the result active_date returned is outside the given criteria.
TIA
Karlo Mutschler
the Query looks like this
SELECT *
FROM tablename
WHERE activ_date BETWEEN '2001/03/01' AND '2001/03/31'
AND deactive_date > '2001/05/01' ;
Result is correct !
If the WHERE-Clause is extended to read
WHERE activ_date BETWEEN '2001/03/01' AND '2001/03/31'
AND deactive_date > '2001/05/01'
OR deactive_date IS NULL ;
the result active_date returned is outside the given criteria.
TIA
Karlo Mutschler