I have the following SQL that creates the table below:
SELECT c.cOLUMN1 , c.cOLUMN2 , COALESCE (sc.cOLUMN3, 'XXX') AS cOLUMN3
FROM tabel AS c 
COLUMN1  COLUMN2   COLUMN3 
   1        1        XXX     
   1        1        26785  
   1        1        23432   
   1        1        XXX  
I want to add two new columns - if the value in column3 is equal too 'XXX' then the new in NEWCOLUMN_A should be '0' and NEWCOLUM_B should be '1'.
Otherwise the new in NEWCOLUMN_A should be '1' and NEWCOLUM_B should be '1'.
As shown below:
COLUMN1  COLUMN2   COLUMN3  NEWCOLUMN_A  NEWCOLUMN_B
   1        1        XXX       0            1  
   1        1        26785     1            1           
   1        1        23432     1            1 
   1        1        XXX       0            1 
 
     
     
     
    