Viewing 15 posts - 13,621 through 13,635 (of 15,381 total)
SQLRNNR (10/26/2011)
Sean Lange (10/26/2011)
Chad Crawford (10/26/2011)
October 26, 2011 at 12:35 pm
Chad Crawford (10/26/2011)
Boss (to group):...
October 26, 2011 at 12:23 pm
SQLRNNR (10/26/2011)
Congrats to Wayne for winning the TSQL Challenge
I second that. Nice work Wayne!!!
October 26, 2011 at 12:21 pm
GSquared (10/26/2011)
"Denali" is the Athabaskan name for Mt McKinley in Alaska, and means "The High One". (Which could be taken all kinds of...
October 26, 2011 at 12:20 pm
join school on school.SiteID = coalesce(tempsiteID, permsiteID)
Not sure what else can be said. If tempsiteID is not null then it will join on that, otherwise it will join on the...
October 25, 2011 at 10:55 am
just join on tablea = coalesce(tempsiteID, permSiteID)
October 25, 2011 at 10:50 am
You can't specify the same column more than once in a single update. Which one does it use as the new value???
To accomplish what you are trying you will have...
October 25, 2011 at 10:17 am
And Sean, thanks for the plug!
No problem. It is a great shortcut to figuring all that stuff out. 😉
October 24, 2011 at 3:54 pm
Take a look at this. http://www.sqlservercentral.com/blogs/lynnpettis/archive/2009/3/25/some-common-date-routines.aspx
October 24, 2011 at 12:50 pm
Easiest way to make sure your update is not doing something really bad is to put it in a transaction first.
begin transaction
update blah blah
rollback transaction
If you see a reasonable...
October 24, 2011 at 9:08 am
How do you know which one is first?
October 24, 2011 at 8:57 am
update table
set column = somevalue
where Some Condition
That help?
October 24, 2011 at 8:55 am
evaleah (10/21/2011)
I keep going back and forth on the one lookup table design. For UI purposes in this case it makes it easier...
October 21, 2011 at 3:05 pm
That is a pretty slick way to deal with that Lowell. I will have to add to my bag of tricks when dealing with other people's data structures. :w00t:
October 21, 2011 at 2:07 pm
Viewing 15 posts - 13,621 through 13,635 (of 15,381 total)