• If I can add "RANKID" in my source then I can easily Pull my data through above While Loop. Here is source table as an example.

    RankID,Source_id,sta_id    ,Address1 ,City    ,PaymentMethod,Invoice_Detail
    1          ,21    ,KXV    ,Rd    , ,    ,
    1          ,22    ,KXV    ,PO Box234    ,Dallas,    ,
    1          ,31    ,    ,    ,    ,Cash    ,;8555-4
    1          ,42    ,Paid Sat    ,    ,    ,    ,
    1          ,Y    ,180217    ,6    ,23550    , ,800-345-969
    2          ,21    ,CNN    ,TV    ,    ,    ,
    2          ,22    ,CNN    ,PO Box 99    ,Chicag,    ,
    2          ,31    ,    ,    ,    ,Cash    ,224;86799
    2          ,42    ,Paid Sun    ,    ,    ,    ,
    2           ,Y    ,180218    ,6    ,3456    , ,888-191-1900
    2           ,Y    ,180226    ,7    ,456    , ,800-900-8999