Results 1 to 3 of 3

Thread: find vals which are in one table but not in another

  1. #1
    Join Date
    Jan 2007
    Posts
    2

    Arrow find vals which are in one table but not in another

    i have 2 tables I need to find values which are present in t1 but not present in t2.

    thanx in advance

  2. #2
    Join Date
    May 2006
    Posts
    407
    Here is the SQL code for what you want. Of course you will need to change the table and field names to match what you are using.
    Code:
    SELECT T1.Fld1, T1.Fld2, T1.Fld3
    FROM T1 
        LEFT JOIN T2 
          ON T1.Fld1= T2.Field1
    WHERE (((T2.Field2) Is Null));
    Hope this helps,
    Vic

  3. #3
    Join Date
    Jan 2007
    Posts
    2
    thanx it helped

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •