Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Using function alias Column in Where clause
Select substr(DISPOSITION,InStr(DISPOSITION,'Fno',1)+4) as PosNo,
ITEM_PS_DEF.DISPOSITION, ITEM_PS_DEF.POSITION From ITEM_PS_DEF
where length(substr(DISPOSITION,InStr(DISPOSITION,'Fno',1)+4)) <>''
I can't get this where part to function, it returns no records. If a skip the where clause, I see that many records has empty PosNo. If I use <>' ' instead of <>'', all records are returned. I have also tried: Is null/is not null, without any luck.
Please help.
--
Regards Halvor
A great Oracle tool:
http://members.tripod.com/easydoc/dim.htm
Received on Mon Mar 27 2000 - 08:09:56 CST
![]() |
![]() |