Getting Started with Adobe After Effects - Part 6: Motion Blur


Upload Image Close it
Select File

The challenge is to implement similarly functionality in TSQL, that works similar to TRANSLATE function of ORACLE.

TSQL Beginners Challenge 23 - Create SQL Server version of the ORACLE TRANSLATE function

Solution to TSQL Beginners Challenge 23

Jul 7 2011 10:22AM by KhushbooBahal   

Solution to TSQL Beginners Challenge 23

;with cte as
 (
	select data orig_data,data,LEN(datatoreplace) posn,DataToReplace,ReplacedWithData 
	from @t
	union all
	select t.Data orig_data,convert( varchar(20),REPLACE(cte.data,substring(cte.datatoreplace,cte.posn,1),substring(cte.replacedwithdata,cte.posn,1))) data,
			posn = posn-1,t.DataToReplace,t.ReplacedWithData
	from cte,@t t
	where posn>0		
 )
 select orig_data as OriginalData,Data as TranslatedData 
 from cte 
 where posn=0 

Tags:


KhushbooBahal
944 · 0% · 28
0
Liked



Submit

Your Comment


Sign Up or Login to post a comment.

    Copyright © Rivera Informatic Private Ltd Contact us      Privacy Policy      Terms of use      Report Abuse      Advertising      [ZULU1097]