Yet Another SQL Strategy for Versioned Data

Posted on Simple Talk See other posts from Simple Talk
Published on Wed, 22 Jun 2011 00:00:00 GMT Indexed on 2011/06/24 8:29 UTC
Read the original article Hit count: 223

Filed under:
There is a popular design for a database that requires a built-in audit-trail of amendments and additions, where data is never deleted, but merely superseded by a later version. Whilst this is conceptually simple, it has always made for complicated SQL for reporting the latest version of data. Alex joins the debate on the best way of doing this with an example using an indexed view and the filtered index.

© Simple Talk or respective owner

Related posts about SQL Training