Closed ErSKS closed 7 years ago
SELECT id, entrance_rank, firstName, middleName, lastName, amount_paid, dept_id_p1, dept_id_p2, dept_id_p3, district_id, quota FROM
student_apply
WHERE verified=1 AND quota="Bhaktapur Municipality" AND (dept_id_p1=1 OR dept_id_p2=1 OR dept_id_p3=1) ORDER BY entrance_rank LIMIT 29;
SELECT id, entrance_rank, firstName, middleName, lastName, amount_paid, dept_id_p1, dept_id_p2, dept_id_p3, district_id, quota FROM student_apply WHERE verified=1 AND quota="Bhaktapur District" AND (dept_id_p1=1 OR dept_id_p2=1 OR dept_id_p3=1) ORDER BY entrance_rank LIMIT 24;
SELECT id, entrance_rank, firstName, middleName, lastName, amount_paid, dept_id_p1, dept_id_p2, dept_id_p3, district_id, quota FROM student_apply WHERE verified=1 AND quota="Remote Area" AND (dept_id_p1=1 OR dept_id_p2=1 OR dept_id_p3=1) ORDER BY entrance_rank LIMIT 5;
SELECT id, entrance_rank, firstName, middleName, lastName, amount_paid, dept_id_p1, dept_id_p2, dept_id_p3, district_id, quota FROM student_apply WHERE verified=1 AND quota="Other" AND (dept_id_p1=1 OR dept_id_p2=1 OR dept_id_p3=1) ORDER BY entrance_rank LIMIT 38;
Cross-Checked !
SELECT id, entrance_rank, firstName, middleName, lastName, amount_paid, dept_id_p1, dept_id_p2, dept_id_p3, district_id, quota FROM student_apply WHERE verified=1 AND quota="Bhaktapur Municipality" AND (dept_id_p1=2 OR dept_id_p2=2 OR dept_id_p3=2) ORDER BY entrance_rank LIMIT 14;
SELECT id, entrance_rank, firstName, middleName, lastName, amount_paid, dept_id_p1, dept_id_p2, dept_id_p3, district_id, quota FROM student_apply WHERE verified=1 AND quota="Bhaktapur District" AND (dept_id_p1=2 OR dept_id_p2=2 OR dept_id_p3=2) ORDER BY entrance_rank LIMIT 12;
SELECT id, entrance_rank, firstName, middleName, lastName, amount_paid, dept_id_p1, dept_id_p2, dept_id_p3, district_id, quota FROM student_apply WHERE verified=1 AND quota="Remote Area" AND (dept_id_p1=2 OR dept_id_p2=2 OR dept_id_p3=2) ORDER BY entrance_rank LIMIT 2;
SELECT id, entrance_rank, firstName, middleName, lastName, amount_paid, dept_id_p1, dept_id_p2, dept_id_p3, district_id, quota FROM student_apply WHERE verified=1 AND quota="Other" AND (dept_id_p1=2 OR dept_id_p2=2 OR dept_id_p3=2) ORDER BY entrance_rank LIMIT 20;
BE Computer 1st Merit List - Remains
SELECT id, entrance_rank, firstName, middleName, lastName, amount_paid, dept_id_p1, dept_id_p2, dept_id_p3, district_id, quota FROM student_apply WHERE verified=1 AND quota="Bhaktapur Municipality" AND (dept_id_p1=3 OR dept_id_p2=3 OR dept_id_p3=3) ORDER BY entrance_rank LIMIT 14;
SELECT id, entrance_rank, firstName, middleName, lastName, amount_paid, dept_id_p1, dept_id_p2, dept_id_p3, district_id, quota FROM student_apply WHERE verified=1 AND quota="Bhaktapur District" AND (dept_id_p1=3 OR dept_id_p2=3 OR dept_id_p3=3) ORDER BY entrance_rank LIMIT 12;
SELECT id, entrance_rank, firstName, middleName, lastName, amount_paid, dept_id_p1, dept_id_p2, dept_id_p3, district_id, quota FROM student_apply WHERE verified=1 AND quota="Remote Area" AND (dept_id_p1=3 OR dept_id_p2=3 OR dept_id_p3=3) ORDER BY entrance_rank LIMIT 2;
SELECT id, entrance_rank, firstName, middleName, lastName, amount_paid, dept_id_p1, dept_id_p2, dept_id_p3, district_id, quota FROM student_apply WHERE verified=1 AND quota="Other" AND (dept_id_p1=3 OR dept_id_p2=3 OR dept_id_p3=3) ORDER BY entrance_rank LIMIT 20;
Final Note: No duplicate listing of same applicant. Make listing of them as per their priority for example If an applicant is listed on both BE Civil & BE Electrical, but his/her priority was P1: Civil & P2: Electrical then display him/her only in Merit list of Civil.
Rules
Merit List will be different for various programs