CASE
CASE
WHEN condition THEN result
WHEN condition THEN result
...
ELSE result
ENDSELECT customer_name,
customer_status,
CASE
WHEN customer_status = 'active' THEN 'Aktif'
WHEN customer_status = 'inactive' THEN 'Pasif'
ELSE 'Bilinmiyor'
END AS customer_status_text
FROM customers;Last updated