I have created the table stu_dep_det
CREATE TABLE `stu_dept_cs` ( `s_d_id` int(10) unsigned NOT NULL auto_increment, `stu_name` varchar(15) , `gender` varch
SELECT t1.* FROM stu_dept_cs t1 LEFT JOIN stu_dept_cs t2 ON t1.avg > t2.avg WHERE t2.stu_name IS NULL;