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 do I find duplicates in two columns?

743


how to drop an existing view in mysql? : Sql dba

792


Explain lock escalation? : Transact sql

867


how to decrement dates by 1 in mysql? : Sql dba

760


Are subqueries faster than joins?

726






What are the different datatypes available in PL/SQL?

754


What is a dirty read sql?

714


What company owns postgresql?

769


How do you create a db file?

710


What is an example of translating a date into julian format?

774


how to show all tables with 'mysql'? : Sql dba

816


How can you tell the difference between an index and a view?

690


how to use regular expression in pattern match conditions? : Sql dba

730


What is trigger with example?

739


Why procedure is used in sql?

754