Incrementally inserting data into a table from other tables.

  • Hi,

    I have created a table whose data is populated based on other tables in the database. This table is meant for reporting purpose & i need to create a job that will populate the table once a day. This job has to add the new data to the existing data in the table.

    For example suppose i have populated the table & the table has 100 records as of now, when the job runs & if the query is retrieving 50 records. the 50 records have to be added to the 100 records, making the count 150.

    I have created an extra field in the table set to IDENTITY so that the table has a column with unique values.

    How can I go about this?

    Regards,

    Nithin

  • Insert into rpttable ()

    Select from prod where not exists (check in rpttable)

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

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