Jump to content

Help me About SQL Group By syntax !


atakan_1907

Recommended Posts

  • 1 month later...
select a,b,c,d,e,sum(f) from table group by a,b,c,d,e having sum(f)>0"
i think you can try using WHERE here:select a,b,c,d,e,sum(f) from table WHERE X= bla blagroup by a,b,c,d,e, x having sum(f)>0"not sure if it works though, if not try removng the X from the group by clause
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...