Aktualizovat (opravené tiskové chyby):
SELECT city,state,
CASE
WHEN (city IS NULL OR city='') AND (state IS NULL or state='') THEN ''
ELSE country
END as country_1
FROM `table`
Můžete také použít IF
místo CASE
:IF ((city IS NULL OR city='') AND (state IS NULL or state=''),'',country) as country_1