Is there a way to get the highest and lowest scores using just PHP?
问题 I have a score table for students in a class. All tests and exam scores for subjects are collated and recorded there. CREATE TABLE `scores_primary` ( `id` int(20) NOT NULL, `student_id` int(11) DEFAULT NULL, `class_id` int(5) DEFAULT NULL, `section_id` int(5) DEFAULT NULL, `subject_id` int(11) DEFAULT NULL, `session_id` int(11) DEFAULT NULL, `ca1` int(11) DEFAULT NULL, `ca2` int(11) DEFAULT NULL, `ca3` int(11) DEFAULT NULL, `ca4` int(11) DEFAULT NULL, `ca5` float(10,1) DEFAULT NULL, `ca6`