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
How are the sources and targets definitions imported in informatica designer?
how to load dimension table and fact table. plz tell me the steps.
can we override a native sql query within informatica? Where do we do it? How do we do it?
How to extract sap data using informatica?
Difference between Target-based loading and constraint-based loading?
How to generate sequence numbers using expression transformation?
Is it possible to use a client with different version than that of its Informatica server?
What differs when we choose the sorted input for aggregator transformation?
if we have a delimiters at unwanted places in a flat file how can we over come those.
Where are the source flat files kept before running the session?
How to update or delete the rows in a target, which do not have key fields?
Calculate sum of salaries department wise. Then the sum will be repeat for all columns in each department. Develop a mapping for this.
What are the tasks that can be performed using sq?
What does reusable transformation mean?
One of the optimizing technique to improve the session performance is push down optimization,by using push down optimization we push as much as transformation logic to source/target database,but this degrades the d/b performance,how to overcome this?