Re: WHERE IN clause limitation

From: Lang Richard <richard_at_dse.it>
Date: 1995/10/02
Message-ID: <44o2j4$1cthl_at_venere.inet.it>#1/1


If you user a sub-select to specify the amout of possible cases, then try to replace your WHERE IN clause with:

  select WHAT_EVER
    from YOUR_DATA_TABLE
   WHERE identnr IN

         (select identnr
            from YOUR_JOIN_TABLE)

  Would be like that:

  select WHAT_EVER
    from YOUR_DATA_TABLE Data
   WHERE EXISTS

     (Select 'X'
        from YOUR_JOIN_TABLE Join
       where Data.identnr=Join.Identnr)
-- 
LR
DSE
Received on Mon Oct 02 1995 - 00:00:00 CET

Original text of this message