Hi,
I'm having serious trouble with the syntax of if
statements inside a select statement. I'm trying to
compare two columns, but to check if first it's an exact
match, if not then check for 6 charachters match, if not
check for 4, if not check for 2. I'm looking for
something like:
If combo.unspsc_small = left(combo.unspsc_large, 8)
elseif
combo.unspsc_small = left(combo.unspsc_large, 6)
elseif
combo.unspsc_small = left(combo.unspsc_large, 4)
else
combo.unspsc_small = left(combo.unspsc_large, 2)
I can't get it to work at all. If you can help me then
please do.