I cant get this function to perform how is it suppoed to be
SELECT MAX(SELECT Sum(Prescription.Quantity) gross
FROM Doctor, Prescription
WHERE Doctor.DoctorID = Prescription.PHN
GROUP BY Doctor.Name, Prescription.PCoName
HAVING (Prescription.PCoName="MedCorp");
SELECT MAX(SELECT Sum(Prescription.Quantity) gross
FROM Doctor, Prescription
WHERE Doctor.DoctorID = Prescription.PHN
GROUP BY Doctor.Name, Prescription.PCoName
HAVING (Prescription.PCoName="MedCorp");