Weekly Challenge

Solve the challenge, share your solution and summit the ranks of our Community!
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

10 - Fireball

The dark side seduces another soul.

Highlighted
Alteryx Certified Partner

Here's my solution.

 

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

Solution attached.

Highlighted
Alteryx Partner
Spoiler
Capture.PNG
Highlighted
Alteryx Certified Partner
Alteryx Certified Partner

Challenge Completed

Highlighted
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

Highlighted
Alteryx Certified Partner

Super fun problem.

Love the odd joins

Highlighted
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

 

Highlighted
11 - Bolide

Yikes - I definitely could have done this more efficiently!

Spoiler
Capture.PNG
Highlighted
8 - Asteroid

Got it!