Ver Mensaje Individual
  #3 (permalink)  
Antiguo 27/02/2009, 07:24
ConejoZ
 
Fecha de Ingreso: febrero-2009
Mensajes: 2
Antigüedad: 15 años, 2 meses
Puntos: 0
Respuesta: Mysql problema con group by

La query es

Select Secciones_Contenido.Texto, Secciones_Contenido.Id_Seccion, Textos_Contenido.Contenido as Texto, Textos_Contenido.Titulo as Titular, Textos.Fecha , Textos_Contenido.Id_Contenido as Id_Noticia, Documentos.Archivo,Documentos.Descripcion, Textos_Contenido.Subtitular, Textos.Prioridad, Documentos.Ancho FROM Textos

INNER JOIN Textos_Contenido ON Textos.Id_Contenido=Textos_Contenido.Id_Contenido
LEFT JOIN Documentos ON Documentos.Id_Documento=Textos.Id_Documento
INNER JOIN Secciones_Contenido On Secciones_Contenido.Id_Seccion = Textos.Id_Seccion
INNER JOIN Secciones On Secciones.Id_Seccion = Secciones_Contenido.Id_Seccion

WHERE Textos.Tipo='2' and Secciones.Id_Tipo='1' and Textos.Prioridad <>'2' and Textos.Id_Cliente='5' AND Textos_Contenido.Id_Idioma= '1' and Textos_Contenido.Ver='1'

GROUP by Secciones.Id_Seccion
ORDER by Secciones.Id_Seccion ASC, Textos.Fecha DESC