Posts

Showing posts with the label ETL Transformation

S ) string_replace example

Image
      1A- id   1A- id   1|2| 3  replace to 1||2||3     Reformat     begin   Out.id : : String_replace (in.id ,”| ” ,”| |””);   End   Or   Reformat     begin   Out.id : : string_join ( string_split_no_empty (in.id ,”| ”) ,”| |”);   E nd   1B   In the 2 nd example input file1 to input7 contain one one letter like (1----7) if you are gathering all the input file using reformat and pass the  select condition next_in_sequence () <5 then what will  be the out put .   Ans --4      

S) join and rollup example

Image
 Input             Output 1 A                 1 ABC 2 B                  2 ABC 3 C                  3 ABC       Rollup :   out : : rollup(in) =     begin     out.id:: string_join (accumulation( in.data ), "" );   end ;   join   null key ( cartisian join)      

S) How to remove duplicate records with out using dedup sort?

Image
  Ans :- Rollup     Key :id