hi
i want substract two queries in php can any one give suggestion
query 1 : select count(h.studentid) as count,h.classid,h.appointmentid,DATE_FORMAT(a.appointmentdate,‘%m-%d-%Y’) as appointmentdate, DATE_FORMAT(a.appointmentdate,‘%Y%m%d’) as passdate from school_healthcheckup h,school_appointment a where h.schoolid = 16 and a.id = h.appointmentid and h.classid = ‘10’ group by h.classid order by a.appointmentdate DESC;
query 2 ; select count(school_healthcheckup.classid)from school_healthcheckup,school_details
where school_details.schoolid = school_healthcheckup.schoolid and school_healthcheckup.classid= 10 ;