SELECT
v.Voucher_NO as VoucherNo,
v.Voucher_Id as VID,
date_format(Voucher_Date,'%d/%c/%Y') as vdate,
v.Voucher_Type,
v.Voucher_PayeeName as name,
v.Voucher_ReceivedBy as receiver,
e1.Emp_FirstName as a_FName,
e1.Emp_MiddleName as a_MName,
e1.Emp_LastName as a_LName,
e2.Emp_FirstName as c_FName,
e2.Emp_MiddleName as c_MName,
e2.Emp_LastName as c_LName,
v.Voucher_Amount as totoal
FROM vouchermaster v
inner join employee e1 on e1.Emp_Id=v.Voucher_CertifiedBy
inner join employee e2 on e2.Emp_Id=v.Voucher_ApprovedBy
where Voucher_Date between 'date1' and 'date2' and Voucher_Status='0' group by v.Voucher_No order by Voucher_Type, Voucher_Date desc
Now there are different type of vouchers like ARL, DV. CRV,PC ect.
Is there any way that I can also get the group sum depending upon the voucher type including all the records.