
December 14th, 2012, 11:08 PM
|
|
|
|
Not contained in either an aggregate function or the GROUP BY
Hi;
i am trying sum all the price base on referenceNo, but i get the following error;
Column 'buyerName' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause.
my sql statment
select buyerName, id, category, productName, Sum(price) as "price", date, referenceNo from elena where referenceNo='d11';
Could anyone help ? Thanks
Last edited by xbl1 : December 14th, 2012 at 11:26 PM.
|