As a matter of style: declare variables in as small a scope as possible. In this case you wouldn't have had a problem if you had declared @alldays and @alldays1 within the loop. You could choose a better name for @alldays1 too: @alldaysFmt whould show intent more.
In reply to Re: intersection of lists of dates produces too many results!!
by GrandFather
in thread intersection of lists of dates produces too many results!!
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |