![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
21/08/2015, 10:31
|
![Avatar de huesos52](http://static.forosdelweb.com/customavatars/avatar287966_22.gif) | Colaborador | | Fecha de Ingreso: febrero-2009 Ubicación: Manizales - Colombia
Mensajes: 5.980
Antigüedad: 16 años Puntos: 360 | |
Respuesta: Query oracle
Código SQL:
Ver originalSELECT ASSETNUM, SUM(TOTALCOST) FROM ASSET WHERE ASSETNUM LIKE 'H%' AND TOTALCOST!=0 AND ROWNUM <=5 GROUP BY ASSETNUM HAVING SUM(TOTALCOST)>200
Así?
__________________ Without data, You are another person with an opinion.
W. Edwads Deming
Última edición por huesos52; 21/08/2015 a las 10:38 |