Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sub Query not working
Message
General information
Forum:
Microsoft SQL Server
Category:
Import/Export
Miscellaneous
Thread ID:
01176038
Message ID:
01176045
Views:
31
This message has been marked as the solution to the initial question of the thread.
>Hi Sergey, I'm trying to import data from a linked server table into a SQL server table but only records that aren't already present (on the SQL end) cheers

Try
INSERT INTO dbo.ListNos 
	SELECT li_no AS AdmitList, lux_or_uk AS LuxOrUK
	From lcsshare...ListNos  
	WHERE li_no NOT IN (SELECT li_no From dbo.ListNos)
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform