Viewing 15 posts - 241 through 255 (of 320 total)
Sean Lange (4/10/2012)
create table #Address
(
id int,
addr1 varchar(25),
addr2 varchar(25),
addr3 varchar(25)
)
insert #Address
select 1, '123', NULL, 'Main St.'
union all select 2, NULL, NULL, NULL
union all select...
April 10, 2012 at 9:39 am
opc.three (4/10/2012)
SQLKnowItAll (4/10/2012)
The other option is to do this in separate queries starting with checking col 3 and moving data left. Then column 2.
That's the ticket, but only one...
April 10, 2012 at 9:30 am
This will probably end up being a regular operation.
April 10, 2012 at 9:04 am
Yes, that's my ultimate goal. I'm just trying to think of ways I can accomplish that. For example, I could probably use a combination of ISNULL() with concatenation with a...
April 10, 2012 at 8:59 am
It's not that I mind using three case statements. It's that I don't think they'll be that simple. How about with concatenation?
April 10, 2012 at 8:50 am
Thanks, guys.
@GSquared -- yes, that's exactly what I was talking about, and I think the DB name "Common" is a good way to represent all of that information.
February 27, 2012 at 9:32 am
Nevermind, I think I was thinking of IS_MEMBER.
Thanks anyway,
Mike
January 10, 2012 at 2:03 pm
Thanks guys, very helpful! I have one more question. Is there any way make it so that if there's a remainder, it's at the beginning instead of at the end?
For...
December 21, 2011 at 9:45 am
Jeff Moden (12/6/2011)
Do you have any users on your server, other than "SA", that absolutely require "SA" privs for anything else other than xp_CmdShell usage?
No, I do not.
-Mike
December 7, 2011 at 7:46 am
Under which user context would the CLR function be run?
December 6, 2011 at 11:13 am
As far as I know, you only have two options:
1) Create a new table with the correct column collations, load the data from the original table into it, and replace...
November 23, 2011 at 8:48 am
wizard_froto (11/14/2011)
mytable
State City Sales Qty
CA ...
November 15, 2011 at 8:58 am
This will get you there:
SELECT [State],
City,
AVG(NUMBER) AS Median
FROM (SELECT [State],
...
November 14, 2011 at 2:16 pm
cljolly (11/14/2011)
November 14, 2011 at 12:45 pm
Viewing 15 posts - 241 through 255 (of 320 total)