Advertisement
EmilianoRoldanR

Mostrar todos los prod que tengan det area dentro de un grup

Aug 28th, 2019
419
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.27 KB | None | 0 0
  1. -- MOSTRAR TODOS LOS PRODUCTOS QUE TENGAN DETERMINADA AREA DENTRO DE UN GRUPO
  2.  
  3. SELECT productos.descripcion AS PRODUCTO, areas.nombre AS AREA_IMPRESION
  4. FROM productos, areas
  5. WHERE areas.nombre = 'BARRA' AND idgrupo IN (SELECT idgrupo FROM grupos WHERE descripcion = 'BEBIDAS' )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement