That way, you only specify your beginning and your end. Plus, you can give the RDBMS a hint that you want from this date to this date + N days.If I read the SQL of the OP correct, he is not interested in an interval but in a set of discrete dates without the year. Your SQL-code looks for an interval of dates and would include the year.
Did you notice that he uses the LIKE-operator but does not include wildcards?
Oh, yes and he is not using an RDMS either: just plain CSV-files!
CountZero
"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law
In reply to Re^2: SQL ERROR
by CountZero
in thread SQL ERROR
by WebDev
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |