M
mo
I made this query:
select CONSIGNMENT_CODES.CONSIGNMENT_CODE,
sum(INVC_DETAIL.QTY_SHIP*INVC_DETAIL.UNIT_PRICE)
from INVC_DETAIL, CONSIGNMENT_CODES
where INVC_DETAIL.CNC_AUTO_KEY=CONSIGNMENT_CODES.CNC_AUTO_KEY
group by month(INVC_DETAIL.INVOICE_DATE)
order by INVC_DETAIL.CNC_AUTO_KEY, INVC_DETAIL.INVOICE_DATE;
And get the following error:
You tried to execute a query that does not include the specified
expression 'CONSIGNMENT_CODE' as part of an aggregate function.
Any explanations or suggestions would be greatly appreciated.
-Mo
select CONSIGNMENT_CODES.CONSIGNMENT_CODE,
sum(INVC_DETAIL.QTY_SHIP*INVC_DETAIL.UNIT_PRICE)
from INVC_DETAIL, CONSIGNMENT_CODES
where INVC_DETAIL.CNC_AUTO_KEY=CONSIGNMENT_CODES.CNC_AUTO_KEY
group by month(INVC_DETAIL.INVOICE_DATE)
order by INVC_DETAIL.CNC_AUTO_KEY, INVC_DETAIL.INVOICE_DATE;
And get the following error:
You tried to execute a query that does not include the specified
expression 'CONSIGNMENT_CODE' as part of an aggregate function.
Any explanations or suggestions would be greatly appreciated.
-Mo