how to select alphabets in a one column , for this the
table name is PA_TASKS and column name is TASK_NUMBER, In
TASK_NUMBER the data like this
1.1.3NN,1.1.4NN,1.5.1NN,1.3.2NE,1.5NN,1NN,1.2NE,1CE , For
this i need to disply output as only NN,but not other
alphabets, if NN is thre means i should display , otherwise
leave that blank or empty Its some urgent
requirement ,thanks in advance

Answer Posted / reddibasha

SELECT CASE WHEN instr(TASK_NUMBER,'NN')>0 THEN 'NN' ELSE
null END FROM PA_TASKS;

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many file formats are supported to export data?

873


How to pass a cursor variable to a procedure?

790


Explain the characteristics of oracle dba?

862


How do I manually uninstall oracle client?

757


In XIR2 if we lost the administration password .How can we regain the password?thanks in advance.

1663


What are the different types of modules in oracle forms?

744


How to execute a stored program unit?

791


11. Display the client number and name and the client number and name of the person who referred that client.

2089


How to start a new transaction in oracle?

809


What is recovery manager(rman) backup in Oracle?

872


What is the data pump import utility?

772


How to use "while" statements in oracle?

938


What is the difference between substr and instr?

714


How to connect to a local oracle 10g xe server?

717


How to write text literals in oracle?

828