please help me with this query
select pName,Price, (Price*Quantity) as SalesValues from saleslog where
BillDate='12-10-2010' and pGroup=15 group by pname, Quantity, Price;
This query is intended to show sales summary according to date but it is showing duplicate Products Name.
Output of above query
MAK 2 T OIL 5LTR. 635 3175
MAK 2 T OIL 5LTR. 635 6350
MAK ELITE 3LTR 422 6330
MAK ELITE 3LTR 422 8440
SYSTEM PURGE 305 6100
SYSTEM PURGE 305 15250
as you can see repeated product name but i want sale summary according to Product Name.
thanks……………….
I removed
Pricesince it can (possibly) vary and it’s not clear which one to output.If the price does not vary, use this: