troubleshooting Question

Data extraction

Avatar of AmmarDJ
AmmarDJ asked on
Oracle DatabaseDB Reporting Tools
6 Comments1 Solution388 ViewsLast Modified:

I am extracting some data from the database.

Theses are four fields i.e. value field1,value field2,value field3,value field4 and the fifth field just carries the unit.

I want that if the value fields are blank it should not report anything. In this case it reports a unit.

And if the value field has a value it should report the value as well as the unit.

How to do it?

  value field1||'~'||unit field ||','||
  value field2  ||'~'||unit field ||','||
   value field3  ||'~'||unit field ||','||
    value field4 ||'~'||unit field ||','||
    unit field||','||
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 6 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros