Have a table with 3 million rows and would like to partition it. There are 5 columns, one of them which is a date column. I would like to split up the table by dates. Any easy help would be great. Thanks
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If I’m understanding your question correctly, there are a couple of ways to do this:
You could do it using the Between keyword to break down by specific date ranges.
Or if your breakdown is more simple (e.g. you want to break down by year), you can use the date functions.
There are probably more dynamic ways to do this as well, but I would need to hear some more details of your environment and goals.