Results 1 to 3 of 3
  1. #1
    aniletc37 is offline Novice
    Windows XP Access 2013
    Join Date
    Mar 2014
    Location
    UK
    Posts
    3

    Access is hanging due to this querry.any one guide me

    Hi,
    I have two tables each tables have one column(id).Im writing sql to get the data from table2
    where table 2 ids are not present in table1.bY using the below queery.These tables have huge data.Whnever i write the below
    code access is hanging.
    Please help me on this
    select id from table2


    where id not in(select id from table1)

  2. #2
    orange's Avatar
    orange is online now Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,725
    Try

    select table2.id from
    table2 left join table1 on
    table2.id = table1.id
    where
    table1.id is null;

  3. #3
    aniletc37 is offline Novice
    Windows XP Access 2013
    Join Date
    Mar 2014
    Location
    UK
    Posts
    3
    Thx.Its working fine

Please reply to this thread with any new information or opinions.

Similar Threads

  1. MS Access 2003 hanging
    By Michelleb in forum Access
    Replies: 1
    Last Post: 12-12-2016, 03:38 PM
  2. Replies: 2
    Last Post: 06-07-2013, 11:20 AM
  3. SQL Querry Optimization in MS Access
    By shabar in forum Queries
    Replies: 1
    Last Post: 02-12-2013, 01:38 AM
  4. plz guide about access
    By ali zaib in forum Access
    Replies: 3
    Last Post: 01-10-2012, 11:25 AM
  5. Querry IIf Output Format (Access 2003)
    By Bruce in forum Access
    Replies: 2
    Last Post: 12-03-2009, 06:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums