Inserting Records

  • I have a table which contains records as follows:

    Unique ID StartDate EndDate NumMonths Total

    1234 20080101 20080531 5 500

    I would like to insert into a new table as many records are the NumMonths above incrementing the StartDate by one month for each records. Essential I would like my output to be as follows:

    1234 20080101 20080131 1 100

    1234 20080201 20080229 1 100

    1234 20080301 20080331 1 100

    1234 20080401 20080430 1 100

    1234 20080501 20080531 1 100

    Can anyone provide some insight as to how I can achieve this?

    Thank you,

    Rene O

  • Already asked and answered here

    http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=116046


    N 56°04'39.16"
    E 12°55'05.25"

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply