This is a discussion on sql within the Oracle Database forums, part of the Database category; hai can any one tell this query having the table emp emp_id emp_name 01 john paul 02 ravi kumar 03 ...
|
|||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
sql
hai
can any one tell this query having the table emp emp_id emp_name 01 john paul 02 ravi kumar 03 hari babu when retriving the record i want the query output of emp_name is paul john kumar ravi babu hari if any one knows this please reply me |
|
|||
|
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 |