I'm using SQLite.
I have this query:
    SELECT Customer.contract_number,
       Customer.name,
       Customer.last,
       Customer.phone,
       Contrato.desc,
       CASE Contract.sinc WHEN 1 THEN 'Sincro' ELSE 'NO sincro' END Status1,
       CASE Customer.rev WHEN 1 THEN 'Rev' ELSE 'No rev' END Status2
  FROM Customer,
       Contract
 WHERE Customer.contract_number = Contract.contract_number
UNION ALL
SELECT HandCo.contract_number,
       HandCo.name,
       HandCo.last,
       HandCo.phone,
       HandCo.des,
       CASE HandCon.tradit WHEN 1 THEN 'Tradit' ELSE NULL END Status3
  FROM HandContract;
I want to merge the result from Status1 and result from Status2 in just one column. How I do that? Thank you.
I'm using a UNION for the query and that is the reason why I want to merge the Case Funtion.
Thank you for respond.
 
     
     
    