【CUBE】Oracle分组函数之CUBE魅力
Oracle的CUBE与ROLLUP功能很相似,也是在数据统计分析领域的一把好手。 关于ROLLUP的查询统计功能请参考文章《【ROLLUP】Oracle分组函数之ROLLUP魅力》(http://space.itpub.net/519536/viewspace-...
In和Not In的使用注意事项和区别
not in 与 In 的区别------------------------------------------------------------------------------------------------------not In 相当于 <> all,如果 Not In 后面跟的是子查询的话,子查询中只要包含一个 null 的返回值,则会造成整个 Not in 字句返回空值,结果就是查询不会返回任何结果。而 ...
NVL函数使用时的注意事项和报错的原因
nvl函数的说明--------------------------------------------------------------------------------------------------------语法:NVL(expr1, expr2)In the syntax:expr1 is the source value or expression that may contain a nullexpr2 is the target value for converting the null---------------------------...