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 can I get the number of records affected by a stored procedure?

565


How can you load microsoft excel data into oracle? : aql loader

609


What is the difference between joins?

530


What are the different datatypes available in PL/SQL?

560


How do you optimize a stored procedure query?

561






What is cursor and why it is required?

548


How do you use join?

521


what is offset-fetch filter in tsql? : Transact sql

530


What is a table in a database?

569


Can we create table in function?

560


What is the difference between nvl function, ifnull function, and isnull function?

583


How do I view stored procedures?

534


What kind of join is join?

548


what is table? : Sql dba

570


how to run 'mysql' commands from a batch file? : Sql dba

605