Ver Mensaje Individual
  #4 (permalink)  
Antiguo 06/06/2019, 09:32
Avatar de Libras
Libras
Colaborador
 
Fecha de Ingreso: agosto-2006
Ubicación: En la hermosa perla de occidente
Mensajes: 7.412
Antigüedad: 17 años, 8 meses
Puntos: 774
Respuesta: Consulta cantidad de articulos

Código SQL:
Ver original
  1. SELECT top 5 * FROM(
  2. SELECT SUM(unidades) AS total, fruta FROM frutas GROUP BY fruta
  3. ) AS t1 ORDER BY total ASC
__________________
What does an execution plan say to t-sql query? Go f**k yourself, if you are not happy with me