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

Answers were Sorted based on User's Feedback



how to select alphabets in a one column , for this the table name is PA_TASKS and column name is T..

Answer / 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

how to select alphabets in a one column , for this the table name is PA_TASKS and column name is T..

Answer / ajit

SELECT * FROM SAMP;
A
--------
1.1.3NN
1.1.4NN
1.5.1NN
1.3.2NE

SELECT *
FROM SAMP
WHERE A LIKE '%NN';

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Oracle General Interview Questions

consider some table with 4 r 5 columns in that 1 col is DATE type. The data is like that,For each date in that col some 3 fields r there but all the records r having different data. Now i want to display all the columns by performing grouping on the date field ( as SELECTION Operator(*) cannot be used with group function having only one "group by clause". how to do this? can any one help me in finding out the solution plss?

1 Answers  


What should be the return type for a cursor variable.Can we use a scalar data type as return type?

1 Answers  


without using count(*) and rownum how can we count total record in a table

5 Answers   AC, HP,


how can find the second max sal for every group(i.e i want group the data based on key and find the second max sal for every group

2 Answers   Verizon,


How to turn on or off recycle bin for the session?

0 Answers  






What is memory advisor in Oracle?

0 Answers   MCN Solutions,


How to find the duplicate rows count from employees table in oracle?

0 Answers  


What is a data segment ?

1 Answers  


Explain the use of full option in exp command.

0 Answers  


Which of the following is not a database object TABLESPACE TABLE INDEX NONE

1 Answers  


What are the Limitations of a CHECK Constraint ?

5 Answers  


what is the syntax of DELETE command?

8 Answers  


Categories
  • Oracle General Interview Questions Oracle General (1789)
  • Oracle DBA (Database Administration) Interview Questions Oracle DBA (Database Administration) (261)
  • Oracle Call Interface (OCI) Interview Questions Oracle Call Interface (OCI) (10)
  • Oracle Architecture Interview Questions Oracle Architecture (90)
  • Oracle Security Interview Questions Oracle Security (38)
  • Oracle Forms Reports Interview Questions Oracle Forms Reports (510)
  • Oracle Data Integrator (ODI) Interview Questions Oracle Data Integrator (ODI) (120)
  • Oracle ETL Interview Questions Oracle ETL (15)
  • Oracle RAC Interview Questions Oracle RAC (93)
  • Oracle D2K Interview Questions Oracle D2K (72)
  • Oracle AllOther Interview Questions Oracle AllOther (241)