摘要: 期望结果:IDVALCumSum110102203033060方法一: 使用分析函数select id,val,sum(val) over ( order by id ) as CumSum from table方法二: 如果不支持分析函数,使用joinSELECT a.id, sum(b.num)... 阅读全文
posted @ 2015-12-24 11:36 大汪的数据之路 阅读(2016) 评论(0) 推荐(0)
摘要: IntroductionExternal table is a special table in Netezza system, which could be used to import/export data between flat files and Netezza directly.Imp... 阅读全文
posted @ 2015-10-29 21:14 大汪的数据之路 阅读(768) 评论(0) 推荐(0)
摘要: 由于数据经常会出现重复现象,数据去重是数据分析中常用操作之一,而distinct,group by, partition by三者都可以实现去重功能,实践中需要根据不同的场景需求来选取相应的语法。distinct: 只需要去除重复数据,保留无重复数据group by:可以根据需要查看哪些数据是重复的... 阅读全文
posted @ 2015-10-18 16:28 大汪的数据之路 阅读(750) 评论(0) 推荐(0)
摘要: 1,SQL, database systems2,正则表达式regular expression3,unix shell scripts4,字符编码character encoding5,ETL tools 阅读全文
posted @ 2015-07-14 16:50 大汪的数据之路 阅读(329) 评论(0) 推荐(0)
摘要: ProblemOne QC process need toobtain tables and their row counts in a database inNetezza. We usethe below SQL query to doso:SELECT CAST(TRIM(RELNAME) A... 阅读全文
posted @ 2015-06-19 10:24 大汪的数据之路 阅读(499) 评论(0) 推荐(0)