how to put 0 or 000 depending idcustomer length in sql server

Solutions on MaxInterview for how to put 0 or 000 depending idcustomer length in sql server by the best coders in the world

showing results for - "how to put 0 or 000 depending idcustomer length in sql server"
Dean
20 Jan 2018
1SELECT FORMAT(EmployeeID, '000000')
2FROM dbo.RequestItems
3WHERE ID=0