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

another expression im stuck with

Status
Not open for further replies.

rjhe22

Programmer
Jul 1, 2009
7
GB
if RTG_SP = AA+ and RTG_MOODY = Aa3
the load code is AAP

how do i wirte this does anyone know
 
Hi, Assume this one is also using the derived column stage. There is a pick list of the expressions when you build the derived column which should serve as a start point - but they are sometimes a little confusing.

Your example does not provide an opt out clause where RTG_SP and RTG_MOODY do not equal the values....so have added a no match at the end

Without testing, the syntax would be something like:
RTG_SP == "AA+" && RTG_MOODY == "Aa3" ? "AAP" : "No Match"

If you are just looking to load a AAP value, then the derived column just needs to be the expression "AAP"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top