sql >> Database teknologi >  >> RDS >> Mysql

#1111 - Ugyldig brug af gruppefunktion

SELECT  COALESCE(project,'Total') as Project, SUM(maxslides) AS slides
FROM    (
        SELECT  project, MAX(slides) as maxslides
        FROM    projects_tbl
        WHERE   date BETWEEN '2010-01-01' AND '2010-12-31' 
        GROUP BY
                project
        ) q
GROUP BY
        project WITH ROLLUP


  1. MySQL viser aktuelle forbindelsesoplysninger

  2. Tilføj kolonner til en eksisterende tabel i SQL Server-database

  3. Android:Hvordan importerer man kontakt fra telefonen?

  4. Hvad er LIKE Logical Operator i SQL Server - SQL Server / TSQL Tutorial Del 123