Re: Querry giving incorrect result

From: Vishal Parkar (REMOVE_THIS_vgparkar_at_yahoo.co.in)
Date: 04/20/04


Date: Tue, 20 Apr 2004 08:20:08 +0530


  hi simon,

  you can do this with the help of INSERT INTO...SELECT syntax.
  ex:

  insert into baddata (col1,col2,col3)
  select col1, col2, col3
  from tablea
  where not exists
  (select * from tableb
   where tablea.id = tableb.id)

  --
  Vishal
  vgparkar@yahoo.co.in



Relevant Pages