I have 2 columns in below format:
+-----------------------------------------+-----------------------------------+
|Values |Flags |
+-----------------------------------------+-----------------------------------+
|0x006c,0x0072,0x0074,0x0099,0x009a,0x009f|0x00,0x00,0x00,0x00,0x00,0x01 |
|0x009a,0x00a3,0x009f,0x0099,0x00a5,0x00a7|0x00,0x00,0x01,0x00,0x00,0x00 |
Now I need to parse the Flags
column, find out which position has flag set to 1 and return that corresponding value. In this case 0x009f
for both the rows.
How to do it efficiently using SQL commands? One option could be to convert the 2 columns into 2 tables and then join them by the column number? Anything better? I am not familiar with SQL much. Thanks.