
05/10/2009, 20:21
|
| | Fecha de Ingreso: septiembre-2009
Mensajes: 8
Antigüedad: 15 años, 6 meses Puntos: 0 | |
ayuda con subconsultas PORFAVOR URGENTE ALGUIEN ME PUEDE AYUDAR CON ESTAS SUBCONSULTAS
CUANDO QUIERO HACER ESTAS CONSULTAS ME SALE EL SIGUIENTE ERROR
ME SALE ERROR 1111 (HY000) INVALID USE OF GROUP FUNCTION
CONSULTA 1:
select especialidad
from medicos
group by especialidad
having count(*)=(select max(count(*))
from medicos
group by especialidad);
CONSULTA 2:
select estanteria
from herramientas
group by estanteria
having sum(unidades)=(select max(sum(unidades)) from herramientas
group by estanteria); |