larrydavid
Programmer
Hello,
Currently I have output like this:
[PRODUCT] [DATE] [ORDER] [FLAG]
TESTNAME 2008-05-30 123456 VALUE_ABC
TESTNAME 2008-05-30 123456 VALUE_XYZ
And need to return one row, but only the one with VALUE_XYZ.
I was trying a UNION of sorts but no luck, researched a bit but no luck. This will be transferred to DB2, so unfortunately I don't have the luxury of being able to write a user defined function or stored proc. I need to write this inline as a query.
Any help would be greatly appreciated.
Thanks,
Larry
Currently I have output like this:
[PRODUCT] [DATE] [ORDER] [FLAG]
TESTNAME 2008-05-30 123456 VALUE_ABC
TESTNAME 2008-05-30 123456 VALUE_XYZ
And need to return one row, but only the one with VALUE_XYZ.
I was trying a UNION of sorts but no luck, researched a bit but no luck. This will be transferred to DB2, so unfortunately I don't have the luxury of being able to write a user defined function or stored proc. I need to write this inline as a query.
Any help would be greatly appreciated.
Thanks,
Larry