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

Apply simple case statement

Status
Not open for further replies.

sekar211

MIS
Dec 15, 2003
55
0
0
US
I have table in which has a column "active" and the values are either 'Y' or 'N'. But on the report i have to field called 'Status' which displays like 'Active' or 'Not active' but not 'Y' or 'N'.
In order to achieve this can i use "apply simple case statement REPLACE" with in the Status attribute and display 'Active' or 'Not Active' based on 'Y' or 'N' in the table?
I am not sure if we can do this.If not is there any other way we can achieve it?

Thank you.
 
create an attribute called status. Use the case statement in the description form of the attribute. something like case(active='Y', 'Active', 'Not active')

no need for applysimple.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top