简体   繁体   English

SSIS条件分割 - 条件设置

[英]SSIS conditional split - condition setting

It's one of my practice stuff, setting the condition to split the scariness of rollercoasters. 这是我的练习之一,设定条件分裂过山车的可怕性。
However, it didn't work properly as it did not split the default output which is set as "Not scary". 但是,它没有正常工作,因为它没有拆分设置为“不可怕”的默认输出。
I think something wrong with my second condition, but cannot figure out how to correct that. 我认为我的第二个条件有问题,但无法弄清楚如何纠正这个问题。

Here is the required condition: 这是必需条件:

  • Very scary : The "Speed" column is more than 50. Very scary :“速度”栏目超过50。
  • Quite scary : Either the coaster's "Type" column is Wood, or the "Design" column is not Sit Down. Quite scary :过山车的“Type”列是Wood,或者“Design”列不是Sit Down。
  • Not scary : Any other coasters failing the first two conditions (the default output). Not scary :任何其他过山车都没有达到前两个条件(默认输出)。

And here is the condition I wrote: 以下是我写的条件:

  1. Very scary [Speed ( mph )] > 50
  2. Quite scary Type == "wood" || Design != "sit down"

The result didn't show any "not scary" even when type does not equal to wood or design equals to site down 即使类型不等于木材或设计等于站点向下,结果也没有显示任何“不可怕”

Please help me out, appreciate that! 请帮帮我,谢谢! thank you :) 谢谢 :)

通常,您的条件拆分看起来很好,但请注意SSIS表达式==运算符区分大小写,因此您可以将所有值转换为UPPER Case

Quite scary:        UPPER([Type]) == "WOOD" || UPPER([Design]) != "SIT DOWN"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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