Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Compare values from different tables

Good day! I have the following tables:   a table called Local containing the columns Local[Cliente] and Local[ProductLocal] - a client can have n products a table called Global containing the col...
  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi Anonymous ,

     

    Create a new table:

    New Table = 
    var _t1= SELECTCOLUMNS('Local',"Client",[Local[Cliente]]],"ProductLocal",[Local[ProductLocal]]],"ProductGlobal",BLANK())
    var _t2= SELECTCOLUMNS('Global',"Client",[Global[Cliente]]],"ProductLocal",BLANK(),"ProductGlobal",[Global[ProductGlobal]]])
    return UNION(_t1,_t2)

     

    Best Regards,
    Eyelyn Qin
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.