how to display last 5 letters from a name (take emp table
ename )

Answers were Sorted based on User's Feedback



how to display last 5 letters from a name (take emp table ename )..

Answer / aparna

select substr(ename,-5) from emp

Is This Answer Correct ?    24 Yes 2 No

how to display last 5 letters from a name (take emp table ename )..

Answer / tanmay

select substr(ename,-5)as name from emp

Is This Answer Correct ?    4 Yes 1 No

how to display last 5 letters from a name (take emp table ename )..

Answer / samrendra

select substr(empname,-5)from emp

Is This Answer Correct ?    4 Yes 2 No

how to display last 5 letters from a name (take emp table ename )..

Answer / david

@swati ...

their is no any keyword like "right" as u used in ur
answer's statement......

david

Is This Answer Correct ?    2 Yes 0 No

how to display last 5 letters from a name (take emp table ename )..

Answer / kd

"select substr(ename,-5)as name from emp " is not right
because you will get no name if the ename is shorter than 5
letters.
right way:
select reverse (substr (reverse(ename), 1, 5))
from emp;

Is This Answer Correct ?    0 Yes 0 No

how to display last 5 letters from a name (take emp table ename )..

Answer / swati

select right(ename,5) as name from emp

Is This Answer Correct ?    6 Yes 15 No

Post New Answer

More Oracle AllOther Interview Questions

What is index? How many types of indexes?

2 Answers   HCL,


if i write the procedure.. and other person make the changes in that code then where i find who is changing my procedure

0 Answers  


Can we modify approve purchase order?if yes what is navigation?

0 Answers   L&T,


whats the difference between join command and Cartesian product using example?

1 Answers  


How to clone the database using RMAN back

0 Answers  


Could you please let me know the interfaces in OM / FA??

0 Answers   Oracle,


Why more redos are generated when the oracle database is in begin backup mode?

0 Answers  


how to get the values if source table & target table having duplicate values that matches the lookup condition ?(i want all duplicate match)

1 Answers  


Give the stages of instance startup to a usable state where normal users may access it.

1 Answers  


can u pls share responsibilities for production how to environment in odi?and how to generate report ?

0 Answers  


When creating a user, what permissions must you grant to allow them to connect to the database?

4 Answers  


can u give guidance abt packages of plsql

0 Answers   Mphasis,


Categories
  • Oracle General Interview Questions Oracle General (1808)
  • 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)