Skip to main content

Notice: Workspaces are undergoing maintenance and are temporarily unavailable.

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

Join the Treehouse affiliate program and earn 25% recurring commission! 🤑

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
      • • Vibe Coding
  • Van Nguyen
    Van Nguyen
    3,533 Points

    Missing WHERE clause but got wrong SQL statement when go for WHERE clause instead of HAVING ?

    Posted November 29, 2020 10:59am by Van Nguyen
    Van Nguyen
    3,533 Points
    • Databases
    • Reporting with SQL
    • Aggregate and Numeric Functions
    • Summing Values

    1 Answer

  • theteamtreehouse
    theteamtreehouse
    3,472 Points

    I don't get why this is wrong

    Posted August 21, 2020 12:24am by theteamtreehouse
    theteamtreehouse
    3,472 Points
    • Databases
    • Reporting with SQL
    • Aggregate and Numeric Functions
    • Summing Values

    1 Answer

  • Caleb Newell
    Caleb Newell
    12,562 Points

    SUM()

    Posted April 22, 2020 2:32pm by Caleb Newell
    Caleb Newell
    12,562 Points
    • Databases
    • Reporting with SQL
    • Aggregate and Numeric Functions
    • Summing Values

    1 Answer

  • Taylor Han
    Taylor Han
    2,406 Points

    (SQL) Finding the sum

    Posted April 20, 2020 9:23pm by Taylor Han
    Taylor Han
    2,406 Points
    • Databases
    • Reporting with SQL
    • Aggregate and Numeric Functions
    • Summing Values

    1 Answer

  • Jerry Lombardo
    Jerry Lombardo
    945 Points

    Getting the Grand Total exercise

    Posted November 1, 2019 9:36pm by Jerry Lombardo
    Jerry Lombardo
    945 Points
    • Databases
    • Reporting with SQL
    • Aggregate and Numeric Functions
    • Summing Values

    1 Answer

  • sofia Heikkila Svensson
    sofia Heikkila Svensson
    3,695 Points

    Hi, My code is wrong. The bummer answer is : You should try writing a SELECT query.

    Posted April 18, 2019 7:33am by sofia Heikkila Svensson
    sofia Heikkila Svensson
    3,695 Points
    • Databases
    • Reporting with SQL
    • Aggregate and Numeric Functions
    • Summing Values

    1 Answer

  • adam woolf
    adam woolf
    1,181 Points

    select SUM(rating) AS starman_total_ratings From reviews WHERE movie_id="Starman" it says i did not sum correctly

    Posted April 2, 2019 4:39am by adam woolf
    adam woolf
    1,181 Points
    • Databases
    • Reporting with SQL
    • Aggregate and Numeric Functions
    • Summing Values

    1 Answer

  • Ker Sing Tan
    Ker Sing Tan
    10,573 Points

    solve missing where cause error

    Posted March 17, 2019 7:42am by Ker Sing Tan
    Ker Sing Tan
    10,573 Points
    • Databases
    • Reporting with SQL
    • Aggregate and Numeric Functions
    • Summing Values

    1 Answer

  • Shahrukh Siddiqui
    Shahrukh Siddiqui
    2,698 Points

    UNABLE TO WRITE THE QUERY

    Posted March 6, 2019 5:51am by Shahrukh Siddiqui
    Shahrukh Siddiqui
    2,698 Points
    • Databases
    • Reporting with SQL
    • Aggregate and Numeric Functions
    • Summing Values

    1 Answer

  • Harris Handoko
    Harris Handoko
    3,932 Points

    Why is the WHERE clause required here instead of the HAVING clause?

    Posted February 1, 2019 2:24am by Harris Handoko
    Harris Handoko
    3,932 Points
    • Databases
    • Reporting with SQL
    • Aggregate and Numeric Functions
    • Summing Values

    1 Answer

  • Thomas Wilson
    Thomas Wilson
    18,741 Points

    I keep getting the wrong sum but I don't know what I'm doing wrong.

    Posted January 17, 2019 2:53pm by Thomas Wilson
    Thomas Wilson
    18,741 Points
    • Databases
    • Reporting with SQL
    • Aggregate and Numeric Functions
    • Summing Values

    1 Answer

  • David Corrales
    David Corrales
    4,698 Points

    Need a little help! What am I missing here?

    Posted December 16, 2018 10:46pm by David Corrales
    David Corrales
    4,698 Points
    • Databases
    • Reporting with SQL
    • Aggregate and Numeric Functions
    • Summing Values

    2 Answers

  • Sonia Cabon
    Sonia Cabon
    1,173 Points

    bummer: you're missing the where cause

    Posted September 24, 2018 9:47am by Sonia Cabon
    Sonia Cabon
    1,173 Points
    • Databases
    • Reporting with SQL
    • Aggregate and Numeric Functions
    • Summing Values

    3 Answers

  • Richard gt
    PLUS
    Richard gt
    Courses Plus Student 749 Points

    Summing Values

    Posted August 1, 2018 5:34pm by Richard gt
    Richard gt
    Courses Plus Student 749 Points
    • Databases
    • Reporting with SQL
    • Aggregate and Numeric Functions
    • Summing Values

    1 Answer

  • Amari Hanes
    PLUS
    Amari Hanes
    Courses Plus Student 2,025 Points

    select movie_id, sum(reviews) as starman_total_ratings from reviews where movie_id = 6;

    Posted July 18, 2018 1:10pm by Amari Hanes
    Amari Hanes
    Courses Plus Student 2,025 Points
    • Databases
    • Reporting with SQL
    • Aggregate and Numeric Functions
    • Summing Values

    1 Answer

  • Christopher Parke
    Christopher Parke
    21,978 Points

    Movie Ratings Question Confusing

    Posted June 21, 2018 4:15pm by Christopher Parke
    Christopher Parke
    21,978 Points
    • Databases
    • Reporting with SQL
    • Aggregate and Numeric Functions
    • Summing Values

    2 Answers

  • Robert Keene
    Robert Keene
    5,332 Points

    movie database

    Posted May 30, 2018 3:12pm by Robert Keene
    Robert Keene
    5,332 Points
    • Databases
    • Reporting with SQL
    • Aggregate and Numeric Functions
    • Summing Values

    1 Answer

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

  • About
  • Blog
  • Community
  • Stories
  • Contact
  • Gift Card

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord