Hi everybody,
I have a problem with my SQL-Statement:
SELECT *
FROM [Excel Export Query]
WHERE (((Year > 2003) And (Month <= 6)) Or (Year = 2003))
The WHERE-clause doesn't work properly. As result I receive all
entries from 2003 and 2004 where the month is <= 6.
But I need to get all entries from 2003 (month 1-12) and the entries
from 2004 (month 1-6).
Does anybody know, why this interlocked statement doesn't work?
THANK YOU SO MUCH!
Best wishes,
Stephan
I have a problem with my SQL-Statement:
SELECT *
FROM [Excel Export Query]
WHERE (((Year > 2003) And (Month <= 6)) Or (Year = 2003))
The WHERE-clause doesn't work properly. As result I receive all
entries from 2003 and 2004 where the month is <= 6.
But I need to get all entries from 2003 (month 1-12) and the entries
from 2004 (month 1-6).
Does anybody know, why this interlocked statement doesn't work?
THANK YOU SO MUCH!
Best wishes,
Stephan
Comment