Learn when you want, where you want with convenient online training courses. Sign up now!
col1 col2 col3 col4 col5 col6
aw dsa ds y
Open in new window
[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More
Experts Exchange Solution brought to you by
"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.
case when store1 is not null then 'store1,' end ||
case when store2 is not null then 'store2,' end ||
case when store3 is not null then 'store3,' end ||
case when store4 is not null then 'store4,' end ||
case when store5 is not null then 'store5' end
Open in new window
Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!
select col6, rtrim(case when nvl(col1,'') <> '' then 'col1, ' else '' end ||
case when nvl(col2,'')<> '' then 'col2, ' else '' end ||
case when nvl(col3,'')<> '' then 'col3, ' else '' end ||
case when nvl(col4,'')<> '' then 'col4, ' else '' end ||
case when nvl(col5,'')<> '' then 'col5, ' else '' end ,',') "Cols"
nvl(col1,'') <> '' or
nvl(col2,'') <> '' or
nvl(col3,'') <> '' or
nvl(col4,'') <> '' or
nvl(col5,'') <> ''
Oracle Database treats a character value with a length of zero as null. However, do not use null to represent a numeric value of zero, because they are not equivalent.
Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.
From novice to tech pro — start learning today.
Premium members can enroll in this course at no extra cost.