SELECT
	t0.FBILLNO
	,t0.FID
	,t0.F_CYG_BASE AS 'NewCYG_BASE1'
	,t0.F_CYG_BASE1 AS 'NewCYG_BASE'
	INTO #TEMP1
FROM T_AR_REFUNDBILL t0

----SELECT * FROM #TEMP1
SELECT 
	t0.FID
	,t0.F_CYG_BASE
	,tt.NewCYG_BASE
	,t0.F_CYG_BASE1
	,tt.NewCYG_BASE1
FROM T_AR_REFUNDBILL t0
	INNER JOIN #TEMP1 tt on t0.FID = tt.FID

--UPDATE t0 SET t0.F_CYG_BASE =tt.NewCYG_BASE,t0.F_CYG_BASE1 =tt.NewCYG_BASE1
--FROM T_AR_REFUNDBILL t0
--	INNER JOIN #TEMP1 tt on t0.FID = tt.FID
DROP TABLE #TEMP1