Cannot use hole_cards
I've tried to build a stat based on whether I have info on the hole cards or not, for some reason, when hole_cards is empty the "no cards" isn't triggered. It is a varchar, so should be empty
- Code: Select all
string_agg(
CASE
WHEN lookup_hole_cards.hole_cards != '' THEN lookup_hole_cards.hole_cards
WHEN lookup_hole_cards.hole_cards = '' THEN 'no cards'
ELSE NULL
END,
','
)
