Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
ashmitp869
Creator II
Creator II

How can I compare two fields of same temp table and flag 1 when match ?

Hi All ,

I got a temp_table

Capture5.PNG

How can I compare deal1 and dealerNU1 and flag 1 when  match else 0 in Qlikview script.

Thanks,

1 Reply
jwjackso
Specialist III
Specialist III

See the example below:

TempTable:

Load *,

        If(deal1 = dealerNU1,1,0) as Flag;

SQL Select DateJoinKeyPL,

         deal1,

          dealnm1,

         dealerNU1,

         dealernameNU1

from tablename;