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 NN,NN,NN,NE,NN,NN,NE,CE,
Its some urgent requirement ,thanks in advance

Answer Posted / sumathy

Create table PA_TASKS ( TASK_NUMBER nvarchar (30))

Insert into PA_TASKS values ('1.1.3NN')
Insert into PA_TASKS values ('1.1.4NN')
Insert into PA_TASKS values ('1.5.1NN')
Insert into PA_TASKS values ('1.3.2NE')
Insert into PA_TASKS values ('1.5NN')
Insert into PA_TASKS values ('1NN')
Insert into PA_TASKS values ('1.2NE')
Insert into PA_TASKS values ('1CE')

Select reverse( substring(reverse (TASK_NUMBER),1,2)) from
PA_TASKS

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to return query output in html format? : Sql dba

649


What is difference between hql and sql?

503


How bulk collect improves performance?

570


What is an exception in PL/SQL? What are the two types of exceptions?

621


What is an inconsistent dependency?

579






Is primary key always clustered index?

533


Where the sql database files are stored?

483


How do I audit the sql sent to the server?

520


Is sql pronounced sequel or sql?

736


How to call shell script from pl sql procedure?

625


How do you write an index?

524


How to pipe multiline string to isql?

574


What is 19 null in sql?

532


Explain how exception handling is done in advance pl/sql?

550


What is sql partition?

546