Subject | RE: [ib-support] Performance in where subselect with not in clausula |
---|---|
Author | Bayu |
Post date | 2003-01-29T03:41:04Z |
Actually this proses is in for select do begin <the query> end
table and then select to temporary table. But i want to eleminate temporary
table...
Thanks
> Select distinct( base_nomor )I just think to move sintax in <ad_conditon> and save to result in temporary
> from My_Header
> where
> (
> (
> ( revised_code = 'Y' )
> or
> ( POSTED_CODE = 'C' )
> )
> and
> ( TANGGAL <= :BASIS_DATE )
>
> /* <ad_condition> */
>
> and base_nomor not in
> (
> Select distinct(base_nomor)
> from My_header
> where
> (
> ( tanggal <= :BASIS_DATE )
> and
> ( POSTED_CODE = 'P' )
> and
> ( REFF_AKTIF_CODE = 'Y' )
> )
> )
>
> /* </ad_condition> */
>
>
> )
table and then select to temporary table. But i want to eleminate temporary
table...
Thanks