Error en query
Publicado por mich (4 intervenciones) el 21/02/2008 23:06:04
Hola tengo un error en siguiente query, me marca error de sintaxis. ya lo he revisado pero no consigo encontrar el error.
Les anexo el codigo... gracias
INSERT INTO [AUMXAPP].[CustomerOk]
(OkCompanyCode, OkCustomer, OkCustomerTxt
IndustryCode,Country, SalesResponsible,CustomGruop2,SalesOffice,OkBussinesArea)
SELECT
'800',b.CustId, b.BillName+''+b.billattn,ISNULL(c.sic,''),b.Country,'',
ltrim(rtrim(b.territory)),ISNULL(c.salesoffice,''),ISNULL(c.businessarea,'')
FROM
[AUMXAPP].dbo.[Customer] b INNER JOIN [AUMXAPP].[dbo].[CustomerFiscal] c ON
c.custid = b.custid
WHERE b.status<>'I'
go
select * from [AUMXAPP].[dbo].[CustomerOk]
-- Select billname,billattn from customer where billname like '%,%' or billattn like '%,%'
Les anexo el codigo... gracias
INSERT INTO [AUMXAPP].[CustomerOk]
(OkCompanyCode, OkCustomer, OkCustomerTxt
IndustryCode,Country, SalesResponsible,CustomGruop2,SalesOffice,OkBussinesArea)
SELECT
'800',b.CustId, b.BillName+''+b.billattn,ISNULL(c.sic,''),b.Country,'',
ltrim(rtrim(b.territory)),ISNULL(c.salesoffice,''),ISNULL(c.businessarea,'')
FROM
[AUMXAPP].dbo.[Customer] b INNER JOIN [AUMXAPP].[dbo].[CustomerFiscal] c ON
c.custid = b.custid
WHERE b.status<>'I'
go
select * from [AUMXAPP].[dbo].[CustomerOk]
-- Select billname,billattn from customer where billname like '%,%' or billattn like '%,%'
Valora esta pregunta


0