in reply to The Naughty Nought "OEO" blues
You have to coerce numeric context.
while (0+(my $rows = $dbh->do(<<SQL))) { update #LAG set tmpDate = dateadd( day, case when datepart( weekday, cl.tmpDate) = 2 then -3 else - +1 end, cl.tmpDate) from #LAG cl, $db..HOLIDAY h where cl.tmpDate = h.Date and cl.country = h.country SQL print "$rows holidays adjusted\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: The Naughty Nought "OEO" blues (simpler)
by tye (Sage) on Jan 20, 2005 at 17:27 UTC | |
by demerphq (Chancellor) on Jan 20, 2005 at 17:29 UTC |