2017年1月9日

摘要: Deployment method In Redshift 1, Deploy process: Drop and Refresh the view, Drop table, Create an empty table using the DDL 2, Build data: Insert the 阅读全文
posted @ 2017-01-09 20:37 davawang 阅读(148) 评论(0) 推荐(0) 编辑

2017年1月7日

摘要: Full join issue: When use full join, the below join condition should not occur: 1, OR statement2, an obvious false or true condition, like 1 = 0 or 1= 阅读全文
posted @ 2017-01-07 16:28 davawang 阅读(3899) 评论(0) 推荐(0) 编辑

2016年2月16日

摘要: http://www.douban.com/doulist/1202941/ http://book.douban.com/subject/4619408/ http://book.douban.com/subject/1239220/ 阅读全文
posted @ 2016-02-16 20:21 davawang 阅读(176) 评论(0) 推荐(0) 编辑

2015年12月24日

摘要: 应用场景 主要使用在需要分组计算的场景中,根据所需的计算值可以分为两类: 1,排序类:如排序号,相邻记录等 2,聚合类:如平均值,累加求和,最大值,最末值等 语法 分析函数的语法在各大数据库中基本类似,以基于PostgreSQL的Netezza为例: 分析函数中的窗口特点 1,row_number( 阅读全文
posted @ 2015-12-24 20:50 davawang 阅读(1060) 评论(0) 推荐(0) 编辑
摘要: 期望结果: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 davawang 阅读(1906) 评论(0) 推荐(0) 编辑

2015年10月29日

摘要: 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 davawang 阅读(743) 评论(0) 推荐(0) 编辑

2015年10月18日

摘要: 由于数据经常会出现重复现象,数据去重是数据分析中常用操作之一,而distinct,group by, partition by三者都可以实现去重功能,实践中需要根据不同的场景需求来选取相应的语法。distinct: 只需要去除重复数据,保留无重复数据group by:可以根据需要查看哪些数据是重复的... 阅读全文
posted @ 2015-10-18 16:28 davawang 阅读(698) 评论(0) 推荐(0) 编辑

2015年7月14日

摘要: 1,SQL, database systems2,正则表达式regular expression3,unix shell scripts4,字符编码character encoding5,ETL tools 阅读全文
posted @ 2015-07-14 16:50 davawang 阅读(297) 评论(0) 推荐(0) 编辑

2015年6月19日

摘要: 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 davawang 阅读(484) 评论(0) 推荐(0) 编辑

导航