dbTalk Databases Forums  

substituting nvl2() with case

comp.database.oracle.misc comp.database.oracle.misc


Discuss substituting nvl2() with case in the comp.database.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Sean Nakasone
 
Posts: n/a

Default substituting nvl2() with case - 09-18-2007 , 07:15 PM






I'm looking for an NVL2() substitute. Someone has suggested using case,
but I've always seen case in scripts, not in a single statement. For
example, NVL2() can be used in a single SQL statement like:

SELECT g3e_fid, hs_prefix, hs_number, hs_suffix,
NVL2 (hs_prefix,
hs_prefix || '-' || hs_number || hs_suffix,
hs_number || hs_suffix
) addr_number
FROM parcel_labels_o1

Anyone have an example of using case in a single statement?


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.