I have an query that will display the result as following table:
ID Num_1 Num_2
-- ----- -----
A1 0000 0100
A2 1000 1000
A3 0010 0000
I want to compare the digits in Num_1 one by one with the digits in Num_2 based on the ID.
If the digits in Num_1 is "0" and digits in Num_2 is "1", I will only display A1 as my result and the rest I will ignore it.
Can anyone guide how to do this...