Transformation language 方法 IN, MAX
来源:互联网 发布:乐山seo外包公司 编辑:程序博客网 时间:2024/06/03 19:02
IN()
Matches input data to a list of values. 默认情况下,匹配时大小写敏感。
语法:
IN( valueToSearch, value1, [ value2, ..., valueN, ] CaseFlag )
查找的值valueToSearch可以是String, date或者numeric value。CaseFlag必须是整数,当为0或者空时,大小写不敏感,为其他整数时,大小写敏感。
返回值:
TRUE(1),查找值存在于值列表中
FALSE(0),查找值不在值列表中
NULL,输入值为空时
例子:
IN( ITEM_NAME, ‘Chisel Point Knife’, ‘Medium Titanium Knife’, ‘Safety Knife’, 0 )
ITEM_NAME
返回值
Stabilizing Vest
0 (FALSE)
Safety knife
1 (TRUE)
Medium Titanium knife
1 (TRUE)
NULL
MAX()
Returns the latest date, the largest numeric value or the highest string value within a port or group. You can apply a filter to limit the rows in the search. You can nest only one other aggregate function within MAX.
Note: The MAX function uses the same sort order that the Sorter transformation uses. However, the MAX function is case sensitive, and the Sorter transformation may not be case sensitive.
语法:
MAX(date/numeric_value/string [ , filter_condition])
过滤条件是可选的,过滤条件必须是数字值或者等于TRUE,FALSE,NULL。
当通过的所有值为空,或者是过滤条件为假或者空时,返回值是NULL。
Group By:
Max函数基于在transformation中定义的group by port分组,一组一个返回值,如果没有定义group by port,则将所有值看成一组,返回一个值。
例子:
返回 flashlights的最高价格:
MAX( PRICE, ITEM_NAME='Flashlight' )
ITEM_NAME
PRICE
Flashlight
10.00
Regulator System
360.00
Flashlight
55.00
Diving Hood
79.00
Halogen Flashlight
162.00
Flashlight
85.00
Flashlight
NULL
返回值: 85.00
- Transformation language 方法 IN, MAX
- Transformation in IDA
- Word Count in Java language, 三种不同的方法
- interview in C language
- strassen in c language.
- Semantics in CG language
- MAX方法
- Transformation
- Applying on-the-fly transformation in SharpMap
- deploy the transformation code in an agent
- An in-place algorithm for String Transformation
- Fourier transformation in frequency domain with opencv
- max pooling in caffe
- Programming in the Ruby language
- Using Assembly Language in Linux
- setjmp & longjmp in C language
- Using Assembly Language in Linux
- Hello World in D Language
- 【学习笔记】--zookeeper
- 移动互联网时代创业者应关注的九个新兴领域
- iPhone多国语言版本
- netezza的定位函数
- 在jsp页面中直接写代码用于显示当前时间
- Transformation language 方法 IN, MAX
- IT博客大赛前100名
- [Obj-C笔记] "self = [super init]"的解释与潜藏bug
- LDAP基本命令
- 判断SQL语句是否执行成功
- (严重)HBP oracle 环境,double field 必须设置初始值
- Oracle用户表权限的管理方法
- linux下的mysql数据库中文乱码问题
- 回首过去的那些事儿(1)