我有这样的SQL查询,我试图通过多种方式来组织,但它并没有为我工作,我想按noExp我如何分组这个SQL查询?
select Alumnos.nombreComp as Nombre,
Carreras.nombre as Carrera,
Alumnos.noExp as Expediente,
Historial.fecha as Fecha,
Historial.equipo as Equipo
from Alumnos, Historial, Carreras
where YEAR(fecha)= @año
and MONTH (fecha)[email protected]
and Historial.noExp = Alumnos.noExp
and Alumnos.carrera = Carreras.id_carrera
and Alumnos.activo = 1
帮助!
'我想通过noExp'进行分组,您好,您想对其他列做什么? – Lamak
显示相应的值 –
但是,您正在对一列进行分组,其余的“相应”值是什么?最小?最大?什么? – Lamak