Weekly Challenges

Solve the challenge, share your solution and summit the ranks of our Community!

Also available in | Français | Português | Español | 日本語
IDEAS WANTED

Want to get involved? We're always looking for ideas and content for Weekly Challenges.

SUBMIT YOUR IDEA

Challenge #80: Slowly Changing Dimensions

samN
Bola de fogo

The dark side seduces another soul.

jamielaird
Magnetar

Here's my solution.

 

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

Solution attached.

dominiklz
Asteroide
Saqueador
Capture.PNG
JosephSerpis
17 - Castor
17 - Castor

Challenge Completed

akshatoz
Meteoro

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
Bólide

Super fun problem.

Love the odd joins

Mattpannuzzo
Meteoro

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.

 

 

Saqueador
challenge80solutionMPannuzzo.png

 

kelly_gilbert
Pulsar

Yikes - I definitely could have done this more efficiently!

Saqueador
Capture.PNG
justin_winter
Asteroide

Got it!