I need an oracle query for convert Char to Integer?. Can any
one help me how to do this?
Answer Posted / ankit kansal
First of all Oracle supports implicit conversion between char to number if the specified text is of number type only.
*********************************************
Lets say sql>select '111'+1 as ans from dual;
ans
---
112
*********************************************
Here, 112 is the output you received it does not matter '112' as string.
But For precautions you can write your query as
***********************************************
sql>select to_number(trim('111'))+1 from dual;
***********************************************
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain what is informatica metadata and where is it stored?
What is parallel processing in informatica?
How do you load first and last records into target table? How many ways are there to do it? Explain through mapping flows.
What is the sql query overwrite in source qualifier in informatica
What are pre and post-session shell commands?
What is the difference between source qualifier transformations source filter to filter transformation?
Please let me know how to make encryption and decryption with example?
can any one give some examples for pre sql and post sql(Except dropping and creating index).
What is a grid in Informatica?
What are active and passive transformations?
what is diff b/t sorter t/r and agg have the option sorter property...
What is the maplet?
What is the advantage of informatica?
CANNOT USE PARAMETER FILE! Hi all, I am trying to use parameter file for my workflow. This could help me to filter records where CITY = 'Portland' Following is what I have done: **in Designer - create new parameter : $$PARA_FIL, Parameter, String, IsExprVar=TRUE, Initial value = [empty] - Source Qualifier/ Properties/Source Filter: CUSTOMERS.CITY='$$PARA_FIL' **Create Parameter file: C:\Informatica\PowerCenter8.6.0 \server\infa_shared\BWParam\DynamicParamTest.txt $$PARA_FIL='Portland' **Configure workflow to use the parameter file: Edit Workflow/Properties/Parameter Filename: C:\Informatica\PowerCenter8.6.0 \server\infa_shared\BWParam\DynamicParamTest.txt I also configured directory of parameter file for session task. However, I just got this in the session log: [SQ_CUSTOMERS] SQL Query [SELECT CUSTOMERS.CUSTOMER_ID FROM CUSTOMERS WHERE CUSTOMERS.CITY='$$PARA_FIL'] No record has been loaded to target. It seems that the parameter file has not been read. I cannot understand the reason why. Could any of you kindly suggest me anything? Thanks
Whats there in global repository