Viewing 15 posts - 1,351 through 1,365 (of 1,923 total)
Try this sir:
declare @stringtable table
( string varchar(20) )
insert into @stringtable select 'Friel, Joe'
select RIGHT(string,( len(string ) - charindex(',',string)) )+ ' ' + left (string,( charindex(',',string) -1 ))
from...
July 1, 2010 at 3:42 am
Jeff Moden (6/29/2010)
ColdCoffee (6/28/2010)
homebrew01 (6/28/2010)
In the last code example, what does " SELECT CHAR(10)" and "FOR XML PATH('') " do in this case ?
CHAR(10) inserts a line-break in the output...
June 29, 2010 at 10:51 pm
Jason Messersmith (6/29/2010)
I didnt have any luck with these queries.
:doze: i dint quite get u , Jason ; pls elaborate !
June 29, 2010 at 8:19 am
gideon.kahl (6/28/2010)
I wasn't the one asking the questions, but I learned a lot from the post.
It always is the case here in SSC, u learn not only by asking...
June 29, 2010 at 12:16 am
or:
Declare @r_Count1 bigint
select top 1 @r_Count1 = tbl.rn from
(
select row_number() over(order by (select...
June 28, 2010 at 11:12 pm
My 2 cents 🙂
declare @table table(
string varchar(50)
)
insert @table (string)
select '[gdhdnuidd] 1st Party SW'
union all select '[abcdef] Client'
union all select 'testbusiness'
select
case
...
June 28, 2010 at 10:59 pm
Why not try this:
select max(tbl.rn) from
(
select row_number() over(order by [SkuNumber]) rn from BALEOD2009
...
June 28, 2010 at 8:54 pm
hi there...
try this. to convert columns into rows, you need to use UNPIVOT.
declare @table table(
[Emp_Name] varchar(50),
[MOB] int,
[PHN] int,
[OTH] int
)
insert @table ([Emp_Name], [PHN], [MOB] ,[OTH])
...
June 28, 2010 at 8:44 pm
sammm (6/28/2010)
[abcdef] Client
[gdhdnuidd] 1st Party SW
testbusiness
I want to get rid of the charcters from [ and ]. Is there a SQL...
June 28, 2010 at 8:32 pm
homebrew01 (6/28/2010)
In the last code example, what does " SELECT CHAR(10)" and "FOR XML PATH('') " do in this case ?
CHAR(10) inserts a line-break in the output result
FOR XML PATH('')...
June 28, 2010 at 11:59 am
Are there chances of one RelationId getting more than one value for xaml column ?
I almost did the query, but waiting for this confirmation..
June 25, 2010 at 3:58 am
Oleg and Hugo , thanks for the nice explanations and links.. nice question depicting the precedence of data-types... niceee.
June 24, 2010 at 2:39 am
Please proved clearer "Desired Output" ; it is very hard to arrive at what you want for your post,mate...
June 23, 2010 at 8:01 am
I guess he/she wants to check if a date is a valid date.. IF MailDate is something like '84-15-0156' (dd-mm-yyyy), then he must reject it, if it is '01-01-2010' then...
June 23, 2010 at 7:37 am
xp_sendmail will work with SQL Server 2005..but it will be removed from SQL 2008.. as the yr now is 2010, i would recommend you to change the code to utilize...
June 22, 2010 at 11:24 pm
Viewing 15 posts - 1,351 through 1,365 (of 1,923 total)