Find a way to implement the following logic :
You have column like :
Column 1

AA|BB|CC
DD|EE|FF
WW|AA
I need to get the length of the column without the ‘|’ .

Answer Posted / ankit kansal

An Easy Way Of Achieving The Output Will Be :-

select length(column_name)-(length(cloumn_name)-length(replace(column_name,'|',''))) from table_name;


http://deepinopensource.blogspot.in/

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a predefined event?

855


In which transformation you cannot drag ports into it?

1048


How can we send the flat file data to different targets(which are also flat files) based on the name of flat file with out adding extra columns?

1920


What is depict expression change?

806


Hi all, Can you please send me the Dimensions and fact tables which are used in mutual fund project. and please send me the brief summary about the project. Please do the needful.

2071


Design a mapping to get the pervious row salary for the current row. If there is no pervious row exists for the current row, then the pervious row salary should be displayed as null.

1018


What is the difference between power center and power mart? What is the procedure for creating independent data marts from informatica 7.1?

854


What is the advantage of informatica?

831


How to update or delete the rows in a target, which do not have key fields?

901


Why update strategy and union transformations are active? Explain with examples.

958


What is dimensional table?

813


What is the fact table?

793


Design time, run time. If you don't create parameter what will happen

1629


Explain load alternative records / rows into multiple targets - informatica

903


how to construct simple biogas digerter? please show me detail drawing and specification of simple biogas construction?

2192