SQL Server - quien me puede ayudar con este QUERY

 
Vista:

quien me puede ayudar con este QUERY

Publicado por miguel (3 intervenciones) el 09/06/2004 22:21:53
Buen día

Tengo este query que ejecuto en MS ACCESS y jala perfectamente pero si quiero ejecutarlo desde MS SQL SERVER me marca error .

¿PQ MARCA ESE ERROR?

SELECT BOM_3.[Parte Padre], BOM_3.[Parte Componente], BOM_3.[SumaDeCosto con negativo], BOM_3.[SumaDeCosto con negativo]/([Repite]*BOM_2.Prorrateo) AS Costo, Count(BOM_3.[Parte Padre]) AS Repite, BOM_2.Prorrateo INTO [Prorrateo BOM_3]
FROM BOM_2 INNER JOIN BOM_3 ON BOM_2.[Parte Componente] = BOM_3.[Parte Padre]
GROUP BY BOM_3.[Parte Padre], BOM_3.[Parte Componente], BOM_3.[SumaDeCosto con negativo], BOM_2.Prorrateo
ORDER BY BOM_3.[Parte Padre];
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:quien me puede ayudar con este QUERY

Publicado por quark (5 intervenciones) el 30/06/2004 13:37:27
SELECT BOM_3.[Parte Padre],
BOM_3.[Parte Componente],
BOM_3.[SumaDeCosto con negativo],
BOM_3.[SumaDeCosto con negativo]/([Repite]*BOM_2.Prorrateo) AS Costo,
Count(BOM_3.[Parte Padre]) AS Repite,
BOM_2.Prorrateo INTO #pp
FROM BOM_2 ,BOM_3
where BOM_2.[Parte Componente] = BOM_3.[Parte Padre]
GROUP BY BOM_3.[Parte Padre], BOM_3.[Parte Componente], BOM_3.[SumaDeCosto con negativo], BOM_2.Prorrateo
ORDER BY BOM_3.[Parte Padre]
insert into BOM_3
select * from #pp
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar