This is my query:
insert into [Consolidated_LoB].[dbo].[consold]
([shp_to_pstl_cd]
,[LoB]
,[catlg_nbr]
,[shpd_qty])
select
[POSTAL_CODE]
,[LoB]
,[PART]
,[SHIPPED_QUANTITY]
from
[ITB_Pank].[dbo].[ITB_consoldtd]
and the message I receive is:
Arithmetic overflow error for type varchar, value = 436112652.000000.
Please advise
CREATE TABLE [dbo].[consold]
(
[srce_loc] [char](3) NULL,
[q2c_nbr] [char](8) NULL,
[ln_itm] [char](3) NULL,
[mfg_loc] [char](3) NULL,
[shpd_qty] [int] NULL,
[shpg_loc] [char](3) NULL,
[inv_prof_loc] [char](3) NULL,
[shp_to_pstl_cd] [char](10) NULL,
[shpmnt_dt] [datetime] NULL,
[shpmnt_typ_ind] [char](2) NULL,
[tot_typ] [char](2) NULL,
[catlg_nbr] [char](34) NULL,
[LoB] [char](10) NULL
[del_id] [varchar](12) NULL
)
CREATE TABLE [dbo].[ITB_consoldtd]
(
[POSTAL_CODE] [float] NULL,
[LoB] [char](10) NULL,
[DELIVERY_ID] [float] NULL,
[PART] [nvarchar](255) NULL,
[SHIPPED_QUANTITY] [float] NULL
)
To simplify the mapping exercise, this is source to target
- [POSTAL_CODE] [float] -> [shp_to_pstl_cd] [char](10)
- [LoB] [char](10) -> [LoB] [char](10)
- [PART] [nvarchar](255) -> [catlg_nbr] [char](34)
- [SHIPPED_QUANTITY] [float] -> [shpd_qty] [int]