Código SQL [-] SELECT Codigo, Detalle, CINT(Left([Codigo],1)+'000') as Maestro FROM Tabla
SELECT Codigo, Detalle, CINT(Left([Codigo],1)+'000') as Maestro FROM Tabla