﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2005 / Business Intelligence  / Data Warehouse - pseudo Junk Dimension needed? / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Sat, 25 May 2013 12:22:09 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Data Warehouse - pseudo Junk Dimension needed?</title><link>http://www.sqlservercentral.com/Forums/Topic744855-147-1.aspx</link><description>Boy, there are definitely multiple schools of thought on this one. I've seen a lot of systems out there that combine simple code/description pairs like that into a single table with a "type" to differentiate them, and then look those values up using the code and the type. Me? I think that's great for a transactional system, but lousy for a DW solution. Make it as easy to develop against as possible. Strive to have as little explanation needed as possible for either developers or consumers.When I've had lots of close to useless dimensions like that in a fact table, I combine them all horizontally into a single junk dimension table, which contains the permutations of the values. So from your example it would be:TableName: DimCustomerCheckCustomerCheckKey  BKPaymentMethodID  PaymentMethod BKTimeZoneID TimeZone1                         1                            LockBox            1                  Eastern2                         1                            LockBox            2                  Mountain3                         2                            ACH                 1                  Eastern4                         2                            ACH                 2                  MountainTo populate the DimCustomerCheck table, you either pre-load it with all possible combinations, all theoretical combinations (if you don't trust your business users to tell you the real list of possible combinations!) or you put in a fairly simple ETL that pulls the distinct combinations from the source system and populates new rows as you go along. Then your SSIS lookup would just be based on the BKPaymentMethodID AND the BKTimeZoneID.Hopefully I've understood what you were asking and presented you with a viable solution,</description><pubDate>Thu, 02 Jul 2009 14:22:21 GMT</pubDate><dc:creator>Rick Todd</dc:creator></item><item><title>RE: Data Warehouse - pseudo Junk Dimension needed?</title><link>http://www.sqlservercentral.com/Forums/Topic744855-147-1.aspx</link><description>Anyone?  Also, the other problem with doing this is that I would store the ID from the junkdimension, which effectively means that the AS400 sent me a valueof 1 for Lockbox but Istore an ID of, say, 123.  Makes it easier to get the description later on, but it isreplacing the original value from the source system.Anyone have any better ideas?</description><pubDate>Thu, 02 Jul 2009 06:14:43 GMT</pubDate><dc:creator>tiffanyjanetblack</dc:creator></item><item><title>Data Warehouse - pseudo Junk Dimension needed?</title><link>http://www.sqlservercentral.com/Forums/Topic744855-147-1.aspx</link><description>I wanted to know what you think about this idea I propose.  Have any of you had the same situation?  What did you do?I am building a DW from ground up. SQL Server 2008.Source System is an AS400 system.  This system had edit checks on little lookupfields (ie Payment Method) to ensure user only picks what is valid.So I don't need to validate the code values in my SSIS pkgs.But.....a code value of 1 or 2 is pretty useless for reporting(and 1 or 2 is what the source system sends me).  I need to know that thePaymentMethod is "Lockbox" or "ACH".So, in my Customer MDS I have a table called Customer.  It has a field called PaymentMethodand the value is 1 (for Lockbox).Do I store, in a junk dimension something like this:ID      Type                     Code       Descr1        PaymentMethod      1            Lockbox2        PaymentMethod      2            ACH3        TimeZone              1            Eastern4        TimeZone              2            Mountainand so on for all the little 3-5 available value code sets?I"m just not certain its the best way....yet I dont want to add 10-15 more tables tomy Customer MDS either.I could have the SSIS pkg add new records into the junk dimension as they become available,I just don't want to hard-code these descriptions into the SQL select stmt (CASE stmt) andthen have to redeploy the pkg every time a new code is added to the source system.Thanks!</description><pubDate>Tue, 30 Jun 2009 14:16:26 GMT</pubDate><dc:creator>tiffanyjanetblack</dc:creator></item></channel></rss>