Group By clause causing error

前端 未结 4 680
青春惊慌失措
青春惊慌失措 2021-01-27 04:35

So here is the context : Developping an ASP.NET MVC 4 web app, I have in my database a table ProductAllocations which is composed of 2 foreign keys : one from m

4条回答
  •  北恋
    北恋 (楼主)
    2021-01-27 05:27

    To use a GROUP BY function you need to make sure all of the fields in your SELECT statement are in aggregate functions (e.g. SUM() or COUNT()), or they need to be in the GROUP BY function.

提交回复
热议问题