简体   繁体   中英

Set currency .00 in staging SSIS

I work with SSIS (SQL Server Integration System) and data related to currency. I want to normalize the currency so that every value followed by .00. For example, the 85000 to be 85000.00. But, if the value already followed by .00, no need to add the .00.

Can anybody help me to deal with it?

I assume that you use a data flow task, so take these steps:

  1. Add Derived Column component.
  2. Add this code (DT_NUMERIC,10,2)(FINDSTRING([value],".",1) != 0 ? [value]: [value]+ ".00")

Good luck

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM