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 answers

creating 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

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -