CAN ANY ONE SEND ME THE CODE FOR THE BELOW
1).REMOVE '_' FROM TELE PHONE "323-237-2323" AND SHOULD
DISPLAY OUT PUT AS "323237232"
2). NEED TO ONLY "COMPANY.COM" FROM EMAIL
FILED "TEST@COMPANY.COM"

Answer Posted / venkateswara rao

--Written in sqlserver
declare @num varchar(100) ='323-237-2323'
, @str varchar(100) ='TEST@COMPANY.COM'
, @ind int

set @ind= CHARINDEX('@',@str)
select SUBSTRING(@str,@ind+1,LEN(@str))
print @ind
select REPLACE(@num,'-','')

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how do u really know that paging to disk is happening while u are using a lookup transform?

1574


how many maximum session supports to multiload in teradata ??

1703


what is pmrep command?

1962


State the differences between shortcut and reusable transformation

529


how do u estimate the depth of the session scheduling queue? Where do u set the number of maximum concurrent sessions that Informatica can run at a given time?

1563






Explain about power designer data modeling software?

475


how do u identify the changed records in operational data?

2141


what happens if the info.server doesn't find the session parameter in the parameter file?

1551


Dear All, Can anyone tell me that from where i can get Power Center 8.5 S/W for Linux and how can i install Power Center 8.5 or any 7.x series on Linux Platform. Thanks in advance

1814


what is data modeling?

1480


What are the key benefits of ETL Testing?

572


Is apache nifi an etl tool?

567


Can we create Hierarchies in generic datasources?

1932


what are the concerns of OLTP and DSS systems?

1979


how do u set partition points in the mapping?

1804