I have zip codes that on import didn't have zero from excel file. So I was doing a select in order to concatenate 0 to front of every 4 digit zip code.
I was trying this, but it still spits out 4 digits
(0 + [ZIP]) as 'fullzip'
ZIP is a float in db table
my full sql
SELECT
TOP 1000
[ZIP]
,(0 + [ZIP]) as 'fullzip'
,[ZIP_Name]
,[ZIP_CountyFIPS]
,[ZIP_County]
,[ZIP_State]
,[Utility_Name]
,[Holding_Company]
,[Utility_ID]
,[GAS_LDC_Type]
,[ELEC_Non_IOU_Type]
,[Percent_of_Overlap]
,[Utility_Territory_Type]
FROM
cc.dbo.ServiceableZipCodes
WHERE
Len( [ZIP] ) = 4