<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Datawarehouse on Alok Regmi</title>
		<link>https://alokregmi.com/tags/datawarehouse/</link>
		<description>Recent content in Datawarehouse on Alok Regmi</description>
		<generator>Hugo</generator>
		<language>en-us</language>
		
		
		
		
			<lastBuildDate>Tue, 18 Aug 2020 07:54:57 +0545</lastBuildDate>
		
			<atom:link href="https://alokregmi.com/tags/datawarehouse/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>RA</title>
				<link>https://alokregmi.com/braindump/2020/08/ra/</link>
				<pubDate>Tue, 18 Aug 2020 07:54:57 +0545</pubDate>
				<guid>https://alokregmi.com/braindump/2020/08/ra/</guid>
				<description>&lt;h2 id=&#34;basic-terminologies&#34;&gt;Basic terminologies:&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Dimensions&lt;/li&gt;&#xA;&lt;li&gt;Facts&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;table-and-table-naming-conventions&#34;&gt;Table and table naming conventions&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;initial 3 letter prefix: DWH, ODS etc.&lt;/li&gt;&#xA;&lt;li&gt;Content: e.g. PRD, SLS&lt;/li&gt;&#xA;&lt;li&gt;Dimension or Fact: D, F&lt;/li&gt;&#xA;&lt;li&gt;Granularity : Department, day/week etc.&lt;/li&gt;&#xA;&lt;li&gt;Suffix as use case: Lookup vs Base Vs Aggregate vs Matrix&lt;/li&gt;&#xA;&lt;li&gt;Naming: data region + dimension_or_fact + content + granularity + usage&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;column-naming&#34;&gt;Column naming:&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Naming: Attribute or measure  + data type&lt;/li&gt;&#xA;&lt;li&gt;Attribute: Price etc.&lt;/li&gt;&#xA;&lt;li&gt;Data type: KEY, ID, DESC&lt;/li&gt;&#xA;&lt;li&gt;Maintenance columns: insert timestamp, update, close, close_dt&lt;/li&gt;&#xA;&lt;li&gt;Business calendar: 4-4-5 or 4-5-4 or 5-4-4 and 13 period calendar.&lt;/li&gt;&#xA;&lt;li&gt;Matrices are designated with MTX suffix.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;dimension-tables&#34;&gt;Dimension Tables:&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Examples of naming:&#xA;&lt;ul&gt;&#xA;&lt;li&gt;DWH_D_TIM_YR_LU : data warehouse, dimension table, timestamp, year, Lookup&lt;/li&gt;&#xA;&lt;li&gt;CURR_TIM : curr timestamp&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;!--list-separator--&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Some examples&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Organization Dimension:&#xA;&lt;ul&gt;&#xA;&lt;li&gt;company &amp;gt; chain &amp;gt; area &amp;gt; region &amp;gt; district &amp;gt; location&lt;/li&gt;&#xA;&lt;li&gt;dimension tables: center, market area, market statistics area, converted location,&#xA;location_day_attr, week attribute, history attribute,&#xA;commercial_invoice attri, omni channel attri, location outage,&#xA;location group matrix etc.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;Product dimension:&#xA;&lt;ul&gt;&#xA;&lt;li&gt;division &amp;gt; group &amp;gt; department &amp;gt; class &amp;gt; subclass&lt;/li&gt;&#xA;&lt;li&gt;other: style, color, size, item,&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;Supplier and Partner:&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Supplier, supplier trait, trait matrix, partner matrix&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;Customer:&#xA;&lt;ul&gt;&#xA;&lt;li&gt;customer, customer rfmp, household&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;</description>
			</item>
			<item>
				<title>Warehouse</title>
				<link>https://alokregmi.com/braindump/2020/04/warehouse/</link>
				<pubDate>Sun, 19 Apr 2020 15:59:59 +0545</pubDate>
				<guid>https://alokregmi.com/braindump/2020/04/warehouse/</guid>
				<description>&lt;p&gt;Basic terminologies:&lt;/p&gt;&#xA;&lt;p&gt;Dimensions&#xA;Facts&lt;/p&gt;&#xA;&lt;h2 id=&#34;table-and-table-naming-conventions&#34;&gt;Table and table naming conventions&lt;/h2&gt;&#xA;&lt;p&gt;initial 3 letter prefix: DWH, ODS etc.&#xA;Content: e.g. PRD, SLS&#xA;Dimension or Fact: D, F&#xA;Granularity : Department, day/week etc.&#xA;Suffix as use case: Lookup vs Base Vs Aggregate vs Matrix&#xA;Naming: data region + dimension_or_fact + content + granularity + usage&lt;/p&gt;&#xA;&lt;h2 id=&#34;column-naming&#34;&gt;Column naming:&lt;/h2&gt;&#xA;&lt;p&gt;Naming: Attribute or measure  + data type&#xA;Attribute: Price etc.&#xA;Data type: KEY, ID, DESC&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Maintenance columns: insert timestamp, update, close, close_dt&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Business calendar: 4-4-5 or 4-5-4 or 5-4-4 and 13 period calendar.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Matrices are designated with MTX suffix.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;</description>
			</item>
			<item>
				<title>RA AND BI</title>
				<link>https://alokregmi.com/braindump/2020/04/ra-and-bi/</link>
				<pubDate>Sun, 19 Apr 2020 15:59:28 +0545</pubDate>
				<guid>https://alokregmi.com/braindump/2020/04/ra-and-bi/</guid>
				<description>&lt;p&gt;RA and BI tips:&lt;/p&gt;&#xA;&lt;p&gt;Compression table use FROM_DT_WID and TO_DT_WID columns to indicate the time range in which records are valid.&lt;/p&gt;&#xA;&lt;p&gt;Current Table stores latest positional fact data at the base level. Defined in day dimension levels&lt;/p&gt;&#xA;&lt;p&gt;Flow:&lt;/p&gt;&#xA;&lt;p&gt;Taken to the staging table or fact table first.&lt;/p&gt;&#xA;&lt;p&gt;Temp table from facts table with surrogate keys for ease of processing&lt;/p&gt;&#xA;&lt;p&gt;If data in temp table is new, inserted into the target table as well. If it&amp;rsquo;s changed data in temp table, existing record changed date and new record added.&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
