Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Outer Join??????
Message
 
 
To
11/11/2001 18:05:30
Joel Hokanson
Services Integration Group
Bellaire, Texas, United States
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00580307
Message ID:
00580320
Views:
7
>I have two SQL 2000 tables (in same database) of phone numbers, TableA and TableB both same format.
>
>I want to ADD to TableA any record (phone number) that is in TableB, but not in TableA
>
>Is that an Outer Join? What would be the syntax????

Try following (not tested)
INSERT INTO tablea
   SELECT * FROM tableb
   WHERE NOT EXISTS ( SELECT * FROM tablea WHERE tablea.phone =  tableb.phone)
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform