Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7368483
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T03:41:10+00:00 2026-05-29T03:41:10+00:00

Have a table with 3 million rows and would like to partition it. There

  • 0

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T03:41:12+00:00Added an answer on May 29, 2026 at 3:41 am

    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.

    drop table if exists TableA, TableB;
    
    create table TableA
    select * from YourTable
    where DateColumn between '2011-07-01' and '2012-02-01';
    
    create table TableB
    select * from YourTable
    where DateColumn between '2011-01-01' and '2011-06-30';
    

    Or if your breakdown is more simple (e.g. you want to break down by year), you can use the date functions.

    drop table if exists TableA, TableB;
    
    create table TableA
    select * from YourTable
    where year(DateColumn) = '2011';
    
    create table TableB
    select * from YourTable
    where year(DateColumn) = '2012';
    

    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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a table with several hundred million rows. One of the columns is
We have a large table (450 million rows containing 34 columns of numeric or
Say you have a MySQL 5.0 MyISAM table with 100 million rows, with one
I have 1 million rows in MySql table temp and wish to multiply column
I would like some help with the following join. I have one table (with
I have a huge table with more than one hundred million of rows and
Say I have a large table, about 2 million rows and 50 columns. Using
I have a large table (~170 million rows, 2 nvarchar and 7 int columns)
I have a table of about a million rows and I need to update
I have a items table with 1 million rows and a users table with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.