I've a SSIS Package which calculates Rate and RateIns.
When I run this in DEV environment, Rate=1.3850588235, RateIns=1.1389411765
However, when I run this in Prod environment, Rate=1.3850588235, RateIns=1.1389411764
I tried to mimic SSIS logic in SSMS and code is below:
CREATE TABLE #TEMP(
GST [decimal](10, 2) NULL,
[GSTFin] [decimal](10, 2) NULL,
[GSTExl] [decimal](10, 2) NULL,
[Rate] [decimal](18, 10) NULL,
[RateIns] [decimal](18, 10) NULL
)
insert into #temp values (11773.00,2092.00,8500.00,0,0)
UPDATE #TEMP
SET Rate=ISNULL(GST,0)/ISNULL(GSTExl,0)
,RateIns=(ISNULL(GST,0) - ISNULL(GSTFin,0))/ISNULL(GSTExl,0)
SELECT * FROM #temp
DROP TABLE #TEMP
Result: Both DEV & Prod show same values: Rate=1.3850588235, RateIns=1.1389411765
This confirmed that, issue is in SSIS package. I compared metadata of components in both Prod and Dev packages. All match. In fact, its the same SSIS package which has been deployed to Prod!
I wonder, why Prod SSIS package is showing RateIns=1.1389411764
Any suggestions?