Advertisement
EmilianoRoldanR

Saber cuanta cantidad de determinado producto vendió tal moz

Oct 4th, 2019
361
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.28 KB | None | 0 0
  1. Saber cuanta cantidad de determinado producto vendió tal mozo
  2.  
  3. SELECT COUNT(cheqdet.idproducto) AS 'Cantidad vendida'
  4. FROM cheqdet
  5. WHERE idmeseroproducto = 9 AND cheqdet.idproducto IN (
  6.                                                        SELECT idproducto FROM productos WHERE descripcion = 'ACQUA PANNA 750ML' )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement