Ver Mensaje Individual
  #3 (permalink)  
Antiguo 07/12/2010, 15:30
Avatar de flaviovich
flaviovich
 
Fecha de Ingreso: agosto-2005
Ubicación: Lima, Peru
Mensajes: 2.951
Antigüedad: 18 años, 9 meses
Puntos: 39
Respuesta: duda con group by

Lo logico seria algo asi:
Código SQL:
Ver original
  1. SELECT title, MAX(price)
  2. FROM titles
  3. WHERE price > (SELECT avg(price) FROM titles )
  4. GROUP BY title
  5. ORDER BY title
__________________
No repitamos temas, usemos el Motor de busquedas
Plantea bien tu problema: Ayúdanos a ayudarte.