Viewing 15 posts - 541 through 555 (of 1,473 total)
montgomery johnson (10/13/2009)
THANKS FOR THE RESPONSE. I WAS THINKING ABOUT THAT NOW THAT I HAVE CONFIRMATION THAT THE EXTERNAL DATA HAS A UNIQUE IDENTIFIER.
Also, the caps are annoying. I...
October 13, 2009 at 9:11 am
Jeff Moden (10/12/2009)
Garadin (10/12/2009)
October 12, 2009 at 7:17 pm
Michael Valentine Jones (10/12/2009)
The first did an...
October 12, 2009 at 3:20 pm
DECLARE @A varchar(100)
SET @A = 'BMW 320 48 month'
SELECT @A
SELECT LEFT(RTRIM(REPLACE(REPLACE(@A,'Month',''),'mnths','')),
LEN(RTRIM(REPLACE(REPLACE(@A,'Month',''),'mnths',''))) - 2) CarModel,
RIGHT(RTRIM(REPLACE(REPLACE(@A,'Month',''),'mnths','')),2) ContractMonths
Replace @A with the name of your column.
October 12, 2009 at 2:38 pm
saivko (10/12/2009)
Seth Phelabaum, thanks also. I just wanted the...
October 12, 2009 at 2:31 pm
WHERE LEFT(LastName,1) BETWEEN 'A' AND 'M'
October 12, 2009 at 2:24 pm
Michael Valentine Jones (10/12/2009)
October 12, 2009 at 12:38 pm
[Edit] Previously suggested a cast method for datecol that as Michael pointed out could prevent index seeks. Removing the suggestion so as not to steer people who don't...
October 12, 2009 at 11:57 am
Arun's solution is how you would accomplish leaving colD unaggregated and in the query. However, it seems (from your requested output) like you only want 1 of colD, not...
October 9, 2009 at 10:02 pm
Jack Corbett (10/9/2009)
Garadin (10/9/2009)
"pimp my blog". Nice. :w00t:
I'm not sure what else to call it when I reference my own blog. I feel kind of dirty doing...
October 9, 2009 at 3:36 pm
PP-564103 (10/9/2009)
...
BTW, I should mention that I could write...
October 9, 2009 at 3:14 pm
PIVOT syntax is somewhat confusing. Take a look at the article in my signature about cross tab reports. IMO, it uses much simpler syntax and is every bit...
October 9, 2009 at 12:15 pm
Take a look at the article on Tally tables in my signature. It will explain how to use this table to split strings of this nature.
October 9, 2009 at 12:07 pm
setlan1983 (10/8/2009)
But in the above case, i wish to set DB_A as a variable that can be passed in. How to achieve that?
You can do it with dynamic SQL if...
October 8, 2009 at 9:39 pm
Viewing 15 posts - 541 through 555 (of 1,473 total)