Forum Replies Created

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

  • RE: Insert Row Based on Another Row?

    do you want to do it based on the values in column1 or based on the values in your groups table?

  • RE: Insert Row Based on Another Row?

    you could try a left join with an insert:

    -- create tables

    CREATE TABLE #Groups

    (groups_pk1 INT)

    CREATE TABLE #Ex

    (column1 INT NOT NULL,

    column2 VARCHAR(64) NOT NULL,

    column3 INT IDENTITY(1, 1) NOT NULL)

    -- populate preexisting sample...

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