Quantcast
Channel: Forum SQL Server Database Engine
Viewing all articles
Browse latest Browse all 15889

Partition function range

$
0
0
Hi,

I have a question concerning partition function range.

Description :
I have 2 tables --> 1 Dimension Table (DimTime) and 1 Fact Table (FactData).
DimTime has an auto-generated PK which is referenced as a FK in FactData.

I want to create partitions for FactData based on dates. For instance, I want one partition for each month in a year.

I cannot write a partition function listing explicitly all the FKs corresponding to a particular month as this key is auto-generated in the DimTime table. The only way to match the FK value with a given month is to join the dimension and the fact table.

How do I write my partition function in this case ?

Thank you,
Didi..er



Viewing all articles
Browse latest Browse all 15889

Trending Articles