I have the following procedure (select) that gives me some information:
SELECT id_accion, accion_tomada, CAST(fec_inicio AS VARCHAR) AS fecha_ini,
CAST(fec_fin AS VARCHAR) AS fecha_fin, estatus
FROM detalles WHERE id_downtime = @id_dt
The status field is of bit type, it returns a 0 or a 1, I want to adjust the select for when I return a 0 = 'open' and 1 = 'closed'. Any ideas?