I have a question. I was wondering if there is a way that I could do something like a CASE Statement in the Data Environment. I know you can do a CASE Statement in SQL but CASE is not supported in VB Data Environment. This really bugs me. Cause I got something that I need but I could not work around it. Here is part of my SQL Code. If you know any other way to take care of this please let me know....
SELECT RTRIM(UPR00100.LASTNAME) + ', ' + RTRIM(UPR00100.FRSTNAME) AS NAME, UPR40900.DEDUCTON, UPR40900.DSCRIPTN, UPR00100.EMPLOYID, PerC = CASE UPR40900.DEDUCTON WHEN '20LEGP' THEN '9%' THEN '20UNCL' THEN '4%' ELSE '' END FROM UPR00100 INNER JOIN UPR00500......etc.....
Thanks,
John-
SELECT RTRIM(UPR00100.LASTNAME) + ', ' + RTRIM(UPR00100.FRSTNAME) AS NAME, UPR40900.DEDUCTON, UPR40900.DSCRIPTN, UPR00100.EMPLOYID, PerC = CASE UPR40900.DEDUCTON WHEN '20LEGP' THEN '9%' THEN '20UNCL' THEN '4%' ELSE '' END FROM UPR00100 INNER JOIN UPR00500......etc.....
Thanks,
John-