Good Morning
select CASE t.gift_club_start_date
WHEN ' ' THEN ' '
ELSE SUBSTR(t.gift_club_start_date,5,2)|| '/' ||SUBSTR(t.gift_club_start_date,7,2)|| '/' ||SUBSTR(t.gift_club_start_date,1,4)
END
from GIFT t
This shows if rows is empty, it shows empty.
I try to do this code with Dynamic SQL
'select CASE t.gift_club_start_date
WHEN '' '' THEN '' ''
ELSE SUBSTR(t.gift_club_start_date,5,2)|| ''/'' ||SUBSTR(t.gift_club_start_date,7,2)|| ''/'' ||SUBSTR(t.gift_club_start_date,1,4)
END
from GIFT t'
BUT output shows this // ,when row is empty.
So how can I code correctly to show empty row? This line WHEN '' '' THEN '' ''
Thank you so mcuh