Select Page

Art of BI: SQL Scripting a Slowly Changing Dimension

Christian Screen | | August 29, 2011

Traditionally a slowly changing dimension (SCD) is created via some ETL tool, whether it be SSIS, OWB, ODI, or Informatica.  The concept is fairly straightforward – capture important business changes to the metadata for each records within the dimension.  For example, A Sales Rep dimension may have a rep’s name, region of sales responsibility, etc.  If the rep’s sales region changes at any point in time, it may be important to the business and their analytics to capture when the point-in-time when this change occurs so that analytics can slearly show sales for the rep when s/he was in new region vs the previous region as well as both regions together.  This can only be accomplished correctly using a SCD. This post doesn’t go into more detail about the different types of SCD.  For that you can clearly check out the concepts exacerbated by Inmon or Kimball, etc.

Recently an opportunity came up to develop a SCD for an ETL process was solely written in PL/SQL.  Without using some of the industry ETL tool that I mentioned above this can pose a significant challenge to most.  After some Google searching I found only a handful of articles and blog posts that have even remotely broached this technical topic.


Subscribe to Our Blog

Never miss a post! Stay up to date with the latest database, application and analytics tips and news. Delivered in a handy bi-weekly update straight to your inbox. You can unsubscribe at any time.

ORA-12154: TNS:could not resolve the connect identifier specified

Most people will encounter this error when their application tries to connect to an Oracle database service, but it can also be raised by one database instance trying to connect to another database service via a database link.

Jeremiah Wilton | March 4, 2009

12c Upgrade Bug with SQL Tuning Advisor

Learn the steps to take on your Oracle upgrade 11.2 to 12.1 if you’re having performance problems. Oracle offers a patch and work around to BUG 20540751.

Megan Elphingstone | March 22, 2017

Oracle EPM Cloud Vs. On-Premises: What’s the Difference?

EPM applications help measure the business performance. This post will help you choose the best EPM solutions for your organization’s needs and objectives.

Bobby Ellis | April 10, 2018

Work with Us

Let’s have a conversation about what you need to succeed and how we can help get you there.


Work for Us

Where do you want to take your career? Explore exciting opportunities to join our team.