hi,
am using query as
here rdate , am collecting from UI,
But i want for every machine id ,total row
am using query as
Code:
Select machine_id as MachineID,item_name as Name,SUM(item_quantity) as Quantity,SUM(billed_amount) as BilledAmount,SUM(received_amount) as ReceivedAmount from transaction where DATE(paid_date)='" + rdate + "'Group by machine_id,item_name
Code:
string rdate = dateTimePicker1.Value.ToString("yyyy-MM-dd");
Code:
MachineID Name Quantity BilledAmount ReceivedAmount V0001 petrol 61 244 244 V0002 Diesel 186 726 726 V0002 petrol 155 605 605 Total 402 1575 1575
Code:
V0001 - - - - total - - - V0001 - - - - total - - -
Comment