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
Can we group by two columns in sql?
What do you understand by pl/sql packages?
What is a primary key sql?
what is self join and what is the requirement of self join? : Sql dba
How you can copy a file to file content and file to pl/sql table in advance pl/sql?
Explain the difference between rename and alias?
What is index example?
What are different types of queries in sql?
Is t sql a programming language?
Is sql a programming?
Can we connect to postgresql using sql developer?
what is table? : Sql dba
Explain spool.
How does one load ebcdic data? : aql loader
what are date and time functions in mysql? : Sql dba