We help IT Professionals succeed at work.
Get Started

Partitioning a SQL table based on a column in another table

Last Modified: 2015-02-28
Hello Experts,

I have a very large table with more than 100 million records, which is part of a Data Warehouse System on a SQL Server 2012 Enterprise edition.

I need to partition this table based on a date column, but the date column is stored in another table and both tables are related via a meaningless Primary Key.

Is there any way I can do the partitioning based on the Date column in the other table?

FYI, I made a quick search on the internet, and one solution is to add a redundant date column to the table that needs to be partitioned, but I'm not quite thrilled with this option and I hope there is a better way.

Thanks for your help,
Watch Question
Senior DBA
Most Valuable Expert 2018
Distinguished Expert 2019
This problem has been solved!
Unlock 1 Answer and 1 Comment.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE