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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Decode in Oracle = ??? in DB2

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I would like to find the same type of query as the one listed below, only I would like to modify it for DB2:

This will change the font color of the text that appears for planned complete date based on the status of the endorsed column in the warehouse. If an activity has been either "E" or "GEM" (endorsed or government endorsed milestone) then the font is red. If the activity is "N" or not endorsed, then the font will be green for this activity. Syntax for Use for Oracle 8.

("decode(endorsed,
'E' , '<font color=red>' ||#0|| '</font>' ,
'GEM', '<font color=red>' ||#0|| '<font>',
'N' , '<font color=green>' ||#0|| '</font>',
#0)&quot;, [PLANNED_COMPLETE_DATE])
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top