一、基础函数
where, distinct, group by, order by, having, like, as, avg, count, sum, min, max, if, join系列, limit, and, or, in, between and, locate, left, view, union, union all
二、进阶函数
1. 时间函数
1. current_date 当前日期
2. datediff 时间差
3. date_add/sub 时间加减
4. to_date 转日期
5. from_unixtime int型转时间戳
6. unix_timestamp 时间戳转int
2. 排序函数
1. row_number 数据相等时排名不同
2. rank 数据相等时排名相同 名次留下空位
3. dense_rank 数据相等时排名相同 名次不留空位
3. 字符串函数
1. substr 截取
2. concat 拼接
3. trim 清除左右两边空字符
4. replace regexp_replace 替换、正则替换
5. split 拆分
6. lpad 左补足
4. json函数
1. get_json_object json取值,取key的value
5. 分位数函数
1. percentile 分位数
6. 精度函数
1. round decimal 保留小数
7. 分组组合函数
1. group by + with rollup 分组结果 union 不分组时汇总结果
2. group by + grouping sets 按多个组合分