Jump to content

Consulta SQL incorrecta Expression #13 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'base.pd.nb_downloadable' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_ful


Recommended Posts

Auxilio!!! mis proveedores de hosting migraron mi sitio de servidor, y ahora el sitio no muestra los productos y cuando entro al administrador me aparece el siguiente error:

  • Consulta SQL incorrecta
    Expression #13 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'base.pd.nb_downloadable' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

 

Qué podría hacer?

Obviamente mi proveedor de hosting no pudo solucionar el problema y por eso les pido me puedan ayudar.

 

Gracias.

Link to comment
Share on other sites

  • 3 months later...
  • 1 month later...
  • 3 months later...

En cualquier agrupación en una consulta sql, todo campo por el que se agrupe en el group by debe ir también en el select, por ejemplo:

 

SELECT Id_Departamento, Nombre_Depto

FROM Departamento JOIN Empleados ON Id_Deparamento=Depto

GROUP BY Id_Departamento, Nombre_Depto

 

El problema es que tendrás campos en el SELECT que no estén en el GROUP BY o viceversa, es sencillo de corregir, por el error que veo en tu error base.pd.nb_downloadable es el campo que te arroja el problema.

 

Un saludo.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...