摘要:
1, What is PCP?Prior Comparable Period2, Why needs PCP?This is to compare the value with history value.3, How to derive the PCP value?The simple modul 阅读全文
摘要:
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 阅读全文
摘要:
1, 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 阅读全文
摘要:
期望结果:IDVALCumSum110102203033060方法一: 使用分析函数select id,val,sum(val) over ( order by id ) as CumSum from table方法二: 如果不支持分析函数,使用joinSELECT a.id, sum(b.num)... 阅读全文