![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
08/02/2013, 09:20
|
![Avatar de Libras](http://static.forosdelweb.com/customavatars/avatar147802_5.gif) | Colaborador | | Fecha de Ingreso: agosto-2006 Ubicación: En la hermosa perla de occidente
Mensajes: 7.412
Antigüedad: 18 años, 5 meses Puntos: 774 | |
Respuesta: Consultar ventas de SOLO un item determinado select id_factura from(
select sum(precio) as total,id_factura from facturas group by id_factura) t1 where total=22.20
asi sacas donde solo se vendio te :)
__________________ What does an execution plan say to t-sql query? Go f**k yourself, if you are not happy with me |