new fact records

Hi there

Is there functionality in SQL 2005 to update only new records, e.g. only records from yesterday. I've seen functionality for dimension tables to only get new records but nothing for fact tables.

Thanks



Answer this question

new fact records

  • batin vadim

    Thanks very much I'll have a crack and let you know how I go
  • Hacker

    Not altogether sure I understand the requirement but I'll try.

    Once you have your records that need to be updated (by whatever means you use to do that), have a LOOKUP component that checks the fact table to see which of those rows were loaded yesterday (or whenever).

    -Jamie



  • Tobisen

    Hi Jamie

    Thanks for the reply, I want to do an iterative update of my datawarehouse add new records only rather than deleting the table and reimporting the entire table. I have read about variables etc and I thought there might be a way to query the data warehose to check the most recent record then use that to update my sql query which brings in the data. By the way I'm using ODBC connection for this.

    Cheers,

    Kiwi


  • Jeff625

    Read this and try method 2:

    http://www.sqlis.com/default.aspx 311

    -Jamie



  • new fact records