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
10 - Fireball

The dark side seduces another soul.

jamielaird
14 - Magnetar

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
17 - Castor
17 - Castor

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
13 - Pulsar

Yikes - I definitely could have done this more efficiently!

Spoiler
Capture.PNG
justin_winter
8 - Asteroid

Got it!