![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
Hi Doug, This is an excellent question. In my experience, the event of deleting records can be a very valuable source of information about a business process, and thus, it is very useful to capture the event in the data warehouse. I have typically handled this by adding a DELETED column to the fact or dimension table that stores a value of Y or N (or 0 or 1) for deleted versus valid records. Then, from the end-user tool, during query execution, you can modify your query criteria to check for records that are marked deleted versus valid. To ensure adequate performance, make sure that the DELETED column is indexed using the appropriate technique for your database. In Oracle DBs, low cardinality columns like this are usually retrieved most efficiently by using bitmap indexes. Note that for auditing purposes, this method works very well, because the underlying integrity of the systems are not challenged by using flags to mark deleted records. It is entirely possible to see the deleted records with the appropriate query. Good Luck, Nenshad |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
Hello Doug, I would look into Time Variance as a concept to handle this situation. have a look at this post on my blog it will help you get started. check out: http://bi-on-sql-server.blogspot.com...-changing.html Myles Matheson Data Warehouse Architect http://bi-on-sql-server.blogspot.com/ |
#6
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |