Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Please, the condition don't filter, Why??????
Hi I can't filter a query, what I'm doing wrong, please
This is the query
SELECT TIPO, CTP_COD, CTP_NOMBRE FROM SOA.VEW_STR_CONTRAPARTE WHERE ((CTP_TIPO_CTPTE IS NULL OR CTP_TIPO_CTPTE= 'AGB' )) AND(INC_CODCLI_TIT = NVL(NULL,-1) OR INC_CODCLI_TIT IS NULL ) AND INC_TIPO = 'P' AND CTP_COD='CNC';
The reason is the CTP_TIPO_CTPTE IS NULL , even when it is in parenthesis,
it works like a LIKE '%'
Some one understands why?
I suppose this is a bug or is this a misunderstanding of sql.
Thanks.
This is the query
CREATE OR REPLACE VIEW soa.vew_str_contraparte (
tipo,
ctp_cod, ctp_nombre, ctp_tipo_ctpte, inc_tipo, inc_codcli_tit )
Juan Carlos Reyes Pacheco
OCP
-- http://www.freelists.org/webpage/oracle-lReceived on Fri Nov 19 2004 - 20:29:55 CST
![]() |
![]() |