Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread Huh? What am I doing wrong here??
Mon, Mar 21 2022 5:00 PMPermanent Link

Ian Branch

Avatar

Hi Team,
I have a table with, among others, the following fields..
1. PVSent a boolean flag; and
2.  PONo a CLOB.
If I apply the following sql, all is fine..
{sql}
select * from PVPayments
where PVSent = False
order by PVNo
{sql}
I get what I expect.

If I apply the following sql...
{sql}
select * from PVPayments
where Upper(Trim(BOTH ' ' from PONo)) <> 'CANCELLED'
order by PVNo
{sql}
I also get what I expect.

But if I combine them..
{sql}
select * from PVPayments
where PVSent = False and Upper(Trim(BOTH ' ' from PONo)) <> 'CANCELLED'
order by PVNo
{sql}
I get rubbish.

Help!

Regards & TIA,
Ian
Mon, Mar 21 2022 11:55 PMPermanent Link

Ian Branch

Avatar

All good.  Senior's moment, or two.  Frown
Image