Select CASE
WHEN eventdate IS NOT NULL
then 1
ELSE 0
end as datestatus
FROM table
Я использую таблицы AWS Redshift и получаю следующую ошибку:
[Amazon](500310) Invalid operation: COALESCE types character varying and integer cannot be matched;
1 statement failed.