Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to add case statement to this 1

Status
Not open for further replies.

pectin232

Technical User
Jan 22, 2011
67
US
How to add case statement to this:

Replace({Command.ROLE}, "_", " ")

Like if {Command.ROLE} = 'test' then
{Command.ROLE} = 'ANALYZE' else 'NA'

.... there are like 100s of them...
 
select replace({command.role},"_","")
case "test" : "ANALYZE"
case "abc" : "SOMETHING ELSE"
default : "OTHER"

If there are hundreds of options, I wonder if there is another approach. Are the results you want coming from another table?

-LB
 
I think so.. some of the reports do not even have a SQL in command and use just Procs and functions from Oracle. That makes it hard for me to even understand the logic in many ways... as the were all outsourced to many different developers all around India.
 
Okay, then I have no further suggestions.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top