
Untitled
By: a guest on
Jul 4th, 2012 | syntax:
None | size: 0.44 KB | hits: 13 | expires: Never
Change Whole number to a decimal in SSIS
8512
8134.5
8003.27
7964.97
7250
8512.00
8134.50
8003.27
7964.97
7250.00
FINDSTRING((DT_WSTR,50)(DT_DECIMAL,3)[Debit Amt],",",1) == 0 ? (DT_WSTR,50)(DT_DECIMAL,3)[Debit Amt] + ",000" : (DT_WSTR,50)(DT_DECIMAL,3)[Debit Amt] + REPLICATE("0",4 - LEN(SUBSTRING((DT_WSTR,50)(DT_DECIMAL,3)[Debit Amt],FINDSTRING((DT_WSTR,50)(DT_DECIMAL,3)[Debit Amt],",",1),LEN((DT_WSTR,50)(DT_DECIMAL,3)[Debit Amt]))))