Viewing 5 posts - 106 through 110 (of 110 total)
There's an error in your sql above. You're inserting twice into the same table (@myothertab) and not at all into @myanothertab.
Nice catch!
June 18, 2010 at 7:10 am
Putting MAX(col2) in the result set helped me see what was going on. WHERE clause evaluated first giving one row result set. This one row satisfies HAVING clause.
select...
June 7, 2010 at 7:08 am
Your finger muscle memory wouldn't allow you to write null=null! FWIW, I think the error helps emphasize the point about being careful when dealing with nulls.
June 2, 2010 at 8:56 am
Viewing 5 posts - 106 through 110 (of 110 total)