Skip to content
Advertisement

SQL get Values where some is greater than value with Having not working

I have this code:

But it gives me an error. I can not figure it out. Happy for every help!

Advertisement

Answer

Having clause execute after group by and then select so you have to use aggregated function with having as following

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement