complex inserting a number of rows based in the value of one field on other table

  • Hi, any ideas for the next :

    I have the next table orders_resume

    id orders

    1 45

    2 60

    3 5

    4 1

    and now I want to populate an other table called orders inserting rows depending of the number of the orders_resume.orders, so for the orders_resume.id=3 the inserted rows will be 5, for the id=1 45 rows, etc....:

    id order

    3 1

    3 2

    3 4

    3 5

    thanks for the tipssss!!!

  • Don't cross post, continue discussions here

    --Ramesh


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

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