Results 1 to 3 of 3

Thread: Not Equal To

  1. #1
    Join Date
    Jun 2007
    Posts
    1

    Not Equal To

    Hi,

    I have two tables as below with the respective columns in brackets:

    TABLE1(A,B,C) and TABLE2(A,D,E,F)

    I need find out all the A in TABLE2 which are "NOT EQUAL TO"
    listed

    Can somebody please help me with this query?

    Thanks,

    Aash.

  2. #2
    Join Date
    Sep 2002
    Posts
    5,938
    select * from table where col <> value
    Last edited by rmiao; 06-05-2007 at 08:16 AM.

  3. #3
    Join Date
    Sep 2002
    Location
    Fantasy
    Posts
    4,254
    if u r looking for values of column A in table 2 not listed in table1 then

    select * from table2 where A not in (select A from table1)

    if u just looking for the string "not equal to" then

    select * from table2 where A ='not equal to'
    or
    select * from table2 where A like '%not equal to%'

Posting Permissions

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