Hi,
I have a table and I need a query with records where (stopdate-startdtSept1)>=90 or stopdate empty. All records under StartdtSept1 field have the same value 9/1/2003 .
I did the following query:
SELECT *
FROM MYtable
WHERE Datediff("d",[mytable].[stopdate],[mytable].[startdtSept1])>=90 or mytable].[stopdate] is NULL;
However I received unexpected output because some values under STOPDATE are 5/30/2002 ...which is BEFORE 9/1/2002 while I expected stopdate later than 9/1/2002 or empty
Could you please tell me what I am doing wrong?
Thank you in advance...
I have a table and I need a query with records where (stopdate-startdtSept1)>=90 or stopdate empty. All records under StartdtSept1 field have the same value 9/1/2003 .
I did the following query:
SELECT *
FROM MYtable
WHERE Datediff("d",[mytable].[stopdate],[mytable].[startdtSept1])>=90 or mytable].[stopdate] is NULL;
However I received unexpected output because some values under STOPDATE are 5/30/2002 ...which is BEFORE 9/1/2002 while I expected stopdate later than 9/1/2002 or empty
Could you please tell me what I am doing wrong?
Thank you in advance...