01 2015 档案

Varchar2 size how to decide?
摘要:When you execute a complicate store procedure, maybe it will execute a long time, maybe you want to change some logic,And retry, but when you recreate... 阅读全文

posted @ 2015-01-27 17:18 tneduts 阅读(213) 评论(1) 推荐(0)

Snowflake weakness and type2 fact table
摘要:DimProductDimSubcategoryDimcategoryproductpksubcategorypkcategorypkskusubcategoryNamecategoryNameproductNamecategorypksubcategorypkSnow flake schema ... 阅读全文

posted @ 2015-01-26 12:19 tneduts 阅读(298) 评论(0) 推荐(0)

Storm集群的安装与测试
摘要:首先安装zookeeper集群,然后安装storm集群。我使用的是centos 32bit的三台虚拟机.MachineNameipnamenode192.168.99.110datanode01192.168.99.111datanode02192.168.99.112首先配置好ssh,可以无密码互... 阅读全文

posted @ 2015-01-25 18:41 tneduts 阅读(628) 评论(0) 推荐(0)

DimDate populate data
摘要:日期维度 任何一个数据仓库都应该有一个日期维度。 因为很少有不需要通过日期维度看数据的情况存在。 日期维度的好处是,你可以通过他连接各个事实表,然后在报表端传送报表参数的时候, 直接自动过滤日期维度的相关值,而不需要自己写query. 去掉了西班牙语和法语的那些列。 You know that th... 阅读全文

posted @ 2015-01-24 15:47 tneduts 阅读(473) 评论(1) 推荐(0)

DW Basic Knowledge2
摘要:DW的元数据是指除去数据本身之外的所有信息。围绕DBMS方面的元数据可以描述为表定义,分区设置,索引视图定义,以及DBMS级安全方面的特权与授权等内容。 在任何场合下,ODS要么是一个处在OLTP和DW之间的第三方物理系统,要么是DW的一个专门管理的热区(用于支持实时交互操作,数据查询具有固定的结构... 阅读全文

posted @ 2015-01-24 12:26 tneduts 阅读(219) 评论(0) 推荐(0)

SSAS-many 2 many one simple sample
摘要:基本业务:一个事件发生后,影响到多个国家,这个事件也会被定一个事件类型(这里简化为type1,2,3),处理这个事件花费多长时间。我们的事实表就记录这个事情,相对应的我们设计两个维表,一个是国家,一个是事件类型,我们可以从这两个维度slice数据。 因为受影响的国家是多值的,所以一条fact表中的记... 阅读全文

posted @ 2015-01-24 07:42 tneduts 阅读(582) 评论(0) 推荐(0)

DW Basic Knowledge1
摘要:以下内容,常读常新,每次都有新的感悟和认识。 数据仓库必须使组织机构的信息变得容易存取。 数据仓库的内容需要是容易理解的,数据对业务人员也必定是直观的,明显的。 数据仓库重新组织了原来OLTP数据库的结构,根据业务需求,但又结合数据建模的一些特性。数据仓库必须一致地展示组织机构的信息。 数据仓库中... 阅读全文

posted @ 2015-01-22 21:46 tneduts 阅读(188) 评论(0) 推荐(0)

Design Tip #142 Building Bridges
摘要:http://www.kimballgroup.com/2012/02/design-tip-142-building-bridges/The dominant topologies of Data Warehouse modelling (Star, Snowflake) are designed... 阅读全文

posted @ 2015-01-22 16:34 tneduts 阅读(191) 评论(0) 推荐(0)

check the element in the array occurs more than half of the array length
摘要:Learn this from stackflow.public class test {public static void main(String[] args) throws IOException{int [] a={1,2,3,4,4,4,5,4,4};int r=GetMajorElem... 阅读全文

posted @ 2015-01-21 15:46 tneduts 阅读(150) 评论(0) 推荐(0)

TC79
摘要:/* INSERT INTO TC79(PatientID,AdmissionDate,DischargeDate,Cost) SELECT * FROM ( SELECT 709,TO_DATE('2011-07-27','YYYY-MM-DD'),TO_DATE('2011-07-31','YYYY-MM-DD'),450 FROM DUAL UNION ALL ... 阅读全文

posted @ 2015-01-18 20:58 tneduts 阅读(392) 评论(0) 推荐(0)

SQL TUNNING
摘要:In a Nested Loops Join, for example, the first accessed table is called the outer table and the second one the inner table. In a Hash Join, the first ... 阅读全文

posted @ 2015-01-16 19:48 tneduts 阅读(232) 评论(0) 推荐(0)

Oracle PLSQL
摘要:Oracle :show explain planselect * from table(dbms_xplan.display);EXPLAIN PLAN FOR statementsIn fact, in a typical data warehouse environments, a bitma... 阅读全文

posted @ 2015-01-16 10:44 tneduts 阅读(213) 评论(0) 推荐(0)

DB String Split sample
摘要:以sqlserver为例进行说明,代码稍加修改,可以用于ORACLE。字符串的拆分和聚合是数据库开发人员比较常见的任务。关于字符串的聚合和拆分,sqlserver的标准解决方案是for xml path.oracle 11g提供了listagg函数方便获取。今天就字符串的拆分进行分析。重点在于思路。... 阅读全文

posted @ 2015-01-14 21:22 tneduts 阅读(794) 评论(1) 推荐(0)

dw websites
摘要:http://www.kimballgroup.com/data-warehouse-business-intelligence-resources/kimball-techniques/dimensional-modeling-techniques/http://www.datamartist.c... 阅读全文

posted @ 2015-01-05 12:29 tneduts 阅读(203) 评论(7) 推荐(0)

导航