sql - Oracle: If-else function for non-nulls -
sql - Oracle: If-else function for non-nulls -
this question has reply here:
if-elseif-else 'condition' in oracle sql [duplicate] 3 answerscreating view, i'm trying find equivalent 'if-else' function similar nvl2(). values have coming in guaranteed non-null.
thefunction(is_book == 'y', 'book', 'show')
you utilize decode:
decode(is_book, 'y', 'book', 'show') sql oracle
Comments
Post a Comment