我正在
将varchar值DSH转换为数据类型int时转换失败。
有人可以帮我解决吗?
select
C.[ChargeID], PG.[LocationID], R.[ReferringPhysicianID],
P.[PhysicianID], C.[ChargeSK],
R.[ReferringPhysicianSK], C.[PhysicianSK], PG.[LocationID],
PG.[PAGPracticeID]
from
ods.dbo.charge C
inner join
ODS.[dbo].[Physician] P on P.[MergeSupportID] = C.[MergeSupportID]
and P.[MergeLevel1Code] = C.[MergeLevel1Code]
and P.[PhysicianID] = C.[PhysicianID]
inner join
ODS.[dbo].[ReferringPhysician] R on R.[MergeSupportID] = C.[MergeSupportID]
and R.[MergeLevel1Code]=C.[MergeLevel1Code]
and R.[ReferringPhysicianID] = C.ReferringPhysicianID
inner join
ODS.[dbo].[PhysicianGroup] PG on PG.[MergeLevel1Code] = C.[MergeSupportID]
and PG.[PhysicianID] = C.[PhysicianID]
and PG.[LocationID] = C.[LocationID]