Re: Query problem
Posted in 1997
In article <5ti1ul$54r@cssun.mathcs.emory.edu>, Priti Jhaveri
<pjhaveri@attmail.com> writes
>Hi,
>
>
>
>
>
>Informix Online DSA-7.11UC2 on NCR machine.
>Following query returns no rows.
>
>
>Select actg_set_seq,actg_dtl_seq, dr_cr, amt
>FROM actg , company
>WHERE
> actg.company_cd = company.company_cd
> AND company.parent_co_cd = "S"
> AND actg.input_type[1] = "J"
> AND ((actg.jrnl_mo <= 6
> AND actg.jrnl_yr = 1997 )
> OR (actg.jrnl_yr < 1997))
> AND actg.sum_to_zero_indr <> "Y"
> AND ((actg.reversal not in ("A","B")) OR
> (actg.reversal is NULL))
> AND actg.facct = "12345678">
>
This could well be a bug in Online 7.11, there have been many fixes
since that version. The latest is either 7.23/7.24 depending upon
which platform you are on.
Most bugs tended to be when parallel queries are run or fragmented
tables/indicies are accessed.
I would upgrade to the latest version and try again.
>and if I put one more AND CONDITION as shown below it returns rows.
>
>
>return few rows.
>Select actg_set_seq,actg_dtl_seq, dr_cr, amt
>FROM actg , company
>WHERE
> actg.company_cd = company.company_cd
> AND company.parent_co_cd = "S"
> AND actg.input_type[1] = "J"
> AND ((actg.jrnl_mo <= 6
> AND actg.jrnl_yr = 1997 )
> OR (actg.jrnl_yr < 1997))
> AND actg.sum_to_zero_indr <> "Y"
> AND ((actg.reversal not in ("A","B")) OR
> (actg.reversal is NULL))
> AND actg.facct = "12345678"
> AND actg.actg_set_seq between 10260000 AND 10260700>^^^^^^^^^^^^^^^^^^^
>Did oncheck on both the tables and no errors.
>No. of rows actg = 4xxxxxx
> company = 55
>Thank for your input.
>
>REgards,
>priti
>
>
>
>
--
David Williams