Weekly Challenge

IDEAS WANTED

We're actively looking for ideas on how to improve Weekly Challenges and would love to hear what you think!

Submit Feedback
We've recently made an accessibility improvement to the community and therefore posts without any content are no longer allowed. Please use the spoiler feature or add a short message in the message body in order to submit your weekly challenge.

Challenge #80: Slowly Changing Dimensions

samN
10 - Fireball

The dark side seduces another soul.

jamielaird
13 - Pulsar

Here's my solution.

 

Spoiler
Screen Shot 2017-12-29 at 14.39.50.png
jasperlch
12 - Quasar

Solution attached.

dominiklz
8 - Asteroid
Spoiler
Capture.PNG
JosephSerpis
15 - Aurora
15 - Aurora

Challenge Completed

akshatoz
7 - Meteor

Hello All,

 

I'm submitting my solution for implementing SCD-2. Please refer the attached  diagram below. I'm doing a equi join on the Stage and target table. For the first time load, I'm taking the left outer dataset and inserting into the target. Then I'm using MD5 function to generate a checksum for all the qualifying columns on stage and target table. If the records match then using the Checksum of stage and target , Upsert is decided.

SCD_Logic.PNG

JordyMicheal
11 - Bolide

Super fun problem.

Love the odd joins

Mattpannuzzo
7 - Meteor

Got there in the end. Dealing with Bob was the main hurdle. 

Not sure how well this would work with removing other records such as Bob.

 

 

Spoiler
challenge80solutionMPannuzzo.png

 

kelly_gilbert
11 - Bolide

Yikes - I definitely could have done this more efficiently!

Spoiler
Capture.PNG
justin_winter
8 - Asteroid

Got it!