Hello.
I'm having one problem with one query...
When I comment the line item_custo_comp is null or item_custo_comp = '', the command work, but when I uncomment this line, the query take long and long time and not work.
So.. I was thinking ... The informix uses index when I put in SQL the expression IS NULL ??
How Can I check this... ?
It's very strange, cuz the same query was running a few time ago...
Maybe the tables grow and ..now the SQL can't run without to use index.
Someone can help me ?
// Execute
SELECT item_custo.cod_item FROM item_custo ,item
,tipo_trat_item WHERE item_custo.cod_empresa = '20' AND
--(item_custo.cod_comp_custo IS NULL OR item_custo.cod_comp_custo = ' ') AND
item_custo.cod_empresa = item.cod_empresa AND item_custo.cod_item =
item.cod_item AND item.ies_tip_item = tipo_trat_item.ies_tip_item AND
item.ies_situacao = 'A' AND tipo_trat_item.cod_empresa = '20' AND
tipo_trat_item.ies_tip_versao = 'C' AND tipo_trat_item.ies_comprado = 'S'
AND item_custo.cod_item IN ( SELECT UNIQUE (cod_item_compon) FROM
consumo_teorico WHERE consumo_teorico.cod_empresa = '20' AND
consumo_teorico.num_versao_cus = 708)