Here's my query:
SELECT scheduledSurgery.anesthesia, scheduledSurgery.LOS, scheduledSurgery.suite, patientInfo.firstname, patientInfo.lastname, patientInfo.surgeon, patientInfo.coverdbyins, patientInfo.surgeon, scheduledSurgery.DOS, scheduledSurgery.TOS
FROM patientInfo INNER JOIN scheduledSurgery ON patientInfo.patientID=scheduledSurgery.patientID
GROUP BY patientInfo.surgeon, scheduledSurgery.DOS, scheduledSurgery.TOS
ORDER BY patientInfo.surgeon, scheduledSurgery.DOS, scheduledSurgery.TOS;
Access doesn't like it, and I dont' see what's wrong!!!
It says that I am trying to execute a query that doesnt inclue anethesia as part of the aggregate function.
ARGHHH!!! Please help!! I'm pulling my hair out.
SELECT scheduledSurgery.anesthesia, scheduledSurgery.LOS, scheduledSurgery.suite, patientInfo.firstname, patientInfo.lastname, patientInfo.surgeon, patientInfo.coverdbyins, patientInfo.surgeon, scheduledSurgery.DOS, scheduledSurgery.TOS
FROM patientInfo INNER JOIN scheduledSurgery ON patientInfo.patientID=scheduledSurgery.patientID
GROUP BY patientInfo.surgeon, scheduledSurgery.DOS, scheduledSurgery.TOS
ORDER BY patientInfo.surgeon, scheduledSurgery.DOS, scheduledSurgery.TOS;
Access doesn't like it, and I dont' see what's wrong!!!
It says that I am trying to execute a query that doesnt inclue anethesia as part of the aggregate function.
ARGHHH!!! Please help!! I'm pulling my hair out.