You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1002 B
46 lines
1002 B
INSERT INTO [SCP_CS].[dbo].[TA_VENDER]
|
|
([VendId]
|
|
,[VendName]
|
|
,[VendAbbCode]
|
|
,[VendType]
|
|
,[Country]
|
|
,[City]
|
|
,[Currency]
|
|
,[Address]
|
|
,[ZipCode]
|
|
,[Contacter]
|
|
,[Phone]
|
|
,[Fax]
|
|
,[Email]
|
|
,[State]
|
|
,[Remark]
|
|
,[Tax]
|
|
,[Site]
|
|
,[ReceiveTimeScope])
|
|
SELECT
|
|
A. [VendId]
|
|
,A.[VendName]
|
|
,A.[VendAbbCode]
|
|
,A.[VendType]
|
|
,A.[Country]
|
|
,A.[City]
|
|
,A.[Currency]
|
|
,A.[Address]
|
|
,A.[ZipCode]
|
|
,A.[Contacter]
|
|
,A.[Phone]
|
|
,A.[Fax]
|
|
,A.[Email]
|
|
,A.[State]
|
|
,A.[Remark]
|
|
,A.[Tax]
|
|
,A.[Site]
|
|
,A.[ReceiveTimeScope]
|
|
|
|
|
|
FROM TA_QUERY A INNER JOIN TA_VENDER B ON A.VENDID=B.VendId AND A.SITE=B.Site
|
|
|
|
WHERE A.SITE='cns'
|
|
GO
|
|
|
|
|
|
|