Viewing 15 posts - 4,816 through 4,830 (of 15,381 total)
Geoff A (5/20/2014)
declare @bo-2 table ([ID] int, Col1 varchar(50), Col2 varchar(50), col3 varchar(50))
insert into @bo-2...
May 20, 2014 at 9:48 am
aberndt (5/20/2014)
May 20, 2014 at 9:43 am
dcwilson2009 (5/20/2014)
Yes, it does, Sean. Thank you. I didn't thing of using TOP 1.
Cool glad that works for you.
May 20, 2014 at 9:05 am
aberndt (5/20/2014)
CREATE TABLE #mytable
(
ID INT IDENTITY(1,1) PRIMARY KEY CLUSTERED,
...
May 20, 2014 at 8:59 am
aberndt (5/20/2014)
I did that first. Even if I add that statement to the rest, I still receive the same error.
Since I can't see you screen it would be very...
May 20, 2014 at 8:46 am
Or maybe the actual order doesn't really matter and you can just do this?
select Col1,
Case LEN(Col1) when 2 then Col2 else '' end as Col2,
Case LEN(Col1) when 2 then ''...
May 20, 2014 at 8:45 am
aberndt (5/20/2014)
May 20, 2014 at 8:38 am
There is no way to do that with the sample data you provided. There is nothing to indicate an order and without a column to use as a sort there...
May 20, 2014 at 8:18 am
aberndt (5/19/2014)
May 19, 2014 at 3:24 pm
vasuarjula (5/19/2014)
I am having a hard time in making case expression work in T-SQL. Please see below script. I have created a sample script and testing it, but it is...
May 19, 2014 at 3:23 pm
rightontarget (5/19/2014)
I found it. It's because of the space.If I do the following, it works:
SELECT val2 FROM q WHERE replace(val2,' ','') NOT LIKE '%[^a-zA-Z]%'
Thanks,
A better approach here would be to...
May 19, 2014 at 2:45 pm
Yes you can replace multiple spaces with a single space much easier than this.
http://www.sqlservercentral.com/articles/T-SQL/68378/%5B/url%5D
It looks like you have a mountain of nested replaces in here for a number of other...
May 19, 2014 at 2:41 pm
tshad (5/19/2014)
I know you can only use whatever values are actually passed back (defined) from the CTE, I didn't know that the value remembers which row...
May 19, 2014 at 2:29 pm
Glad you found a solution. I would still suggest that you should fix the web app to handle user data, not modify user data so that the website code can...
May 19, 2014 at 1:44 pm
Viewing 15 posts - 4,816 through 4,830 (of 15,381 total)