SQL - Having

 
Vista:

Having

Publicado por Eugenia (8 intervenciones) el 25/09/2009 15:31:28
Me he dado cuanta que ahora no me muestra los datos de acuerdo al parametro que le paso en el having. Por favor Ayudenme!

INSERT INTO #TablaTemp (CODAP, CODCAB, TOTAL)
SELECT CODAP, CODCAB, TOTAL= sum (TOTAL) FROM CTACTEPROFESIONALES
WHERE (FECHAEMISION >= (@fechemi1)) and (FECHAEMISION <= (@fechemi2))
GROUP BY CODAP, CODCAb
having (CODAP>=(@codap1)) or (CODAP<=(@codap2))
order by codap, codcab
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:Having

Publicado por Antonio (17 intervenciones) el 01/10/2009 17:33:50
having (CODAP>=(@codap1)) AND (CODAP<=(@codap2))
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