I want to changes my card background color based on condition i want when my status = “Y” its background color green and when status = “N” the background color red else no background color none.
i use this code in SQL Query:
CASE
WHEN ACT_FLG = 'Y' THEN 'background-color: #ff4d4d;'
WHEN ACT_FLG = 'N' THEN 'background-color: #ffcc00;'
ELSE 'background-color: #4caf50;'
END AS data_status
Anyone help me to solve my error