Interview Question 20
Watch my YouTube video for explanation :
Please look into the class notes here for your references:
I/P
airport,from,to
Mumbai,f1,f2 Mumbai,f2,f1
Delhi,f1,f2 Delhi,f2,f1
Pune,f1,f2
Bangalore,f1,f2
Chennai,f1,f2 Chennai,f2,f1
Hyderabad,f1,f2
Pune,f2,f1
Delhi,f2,f1 Delhi,f1,f2
Chennai,f1,f3 Chennai,f3,f1
o/p
airport,from,to (fields)
Mumbai,f1,f2
Delhi,f1,f2
Pune,f1,f2
Bangalore,f1,f2
Chennai,f1,f2
Hyderabad,f1,f2
Chennai,f1,f3
--> input as is ->
INPUT -> Replicate(2) JOIN as Key(F1,F2,F3) -> Collect Unused0,Output
--> suffled col 2 and 3 ->
Unused1 ----------------->
Gather --->Final Output
Output-->Dedup on f1 ---->
Fore more Abinitio, AWS and data engineering videos please subscribe , view , like and share my YouTube channel
Click DataPundit
Comments
Post a Comment