Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Need to create a Star Schema for my Process

$
0
0

Hi,

I have a Stg table which has the data like below

IssueId  ProductName  CompanyName   Status    CreateDate

1            abc                   AAA                 Active   2014-01-01

2            abc                   BBB                 Active   2014-01-02

3            xyz                   CCC                 Closed  2014-01-01

4            def                    DDD                Active   2014-03-01

This data is loaded by a query.

Now i want to show some metrics like  no of isses based on company , no of issues based on a product for weekly and monthly

And i want to design a Start Schema for this

Am creating below tables

DimProduct

ProdKey   ProdNAme

DimCompany

CompKey CompanyName

FactMetrics

Issueid ProdKey CompKey createdate

Now whats the best way to load these tables and how can i show the metrics from the fact table


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>