Search code examples
mysqljoingroup-bymysql-error-1064

MYSQL multiple grouping error


enter image description here

enter image description here

please help me to over come from this. why this happen? what is the exact reason? In my first image i am grouping the sql column by using part_no and its working well. but in the second image I tried to group using multiple columns, but its giving me an erro as the image. I tried this after change my db values means adding same part no to the both rows and same gp_code to the same row.but its not working.

please help me ASAP. thank you.


Solution

  • Remove the braces () from group by clause. That's the problem.