Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2009
    Posts
    1

    Unanswered: ORA-00979: not a GROUP BY expression

    hello here is my query:

    SELECT S.SportId,S.name,SUM(F.Hours) AS "Total"
    FROM FTIME F
    INNER JOIN SPORT S
    ON S.SportId = F.SportId
    GROUP BY Hours;

    i get this error : ORA-00979: not a GROUP BY expression
    do you know how can i fix it?
    i want show the total hourse (SUM) of each sport
    tanx

  2. #2
    Join Date
    Apr 2002
    Location
    Toronto, Canada
    Posts
    20,002
    GROUP BY S.SportId,S.name
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •