query to fetch the employee name with department id inserted at the 4th position of the employee name

Bandi
Posted by Bandi under Sql Server category on | Points: 40 | Views : 265
SELECT concat(LEFT(EMPNAME,4),deptid,right(empname,(len(empname)-4)))
FROM employee

Comments or Responses

Login to post response