Thread: sql
View Single Post

  #2 (permalink)  
Old 11-22-2006, 07:24 AM
sarunraj sarunraj is offline
Junior Member
 
Join Date: Nov 2006
Location: Bangalore, India
Posts: 12
sarunraj is on a distinguished road
Send a message via AIM to sarunraj Send a message via Yahoo to sarunraj
hi,

select substr(emp_name,instr(emp_name,' ',2,1),length(emp_name))
||' '|| substr(emp_name,1,instr(emp_name,' ',2,1)) name1
from emp

i think this query will do it for you..

hope it helps,

regards
Raj
Reply With Quote