select sid ,stdname ,rollno ,concat(rollno,' ',stdname) as stdrollno ,division ,'1' as attendance from studentdetails where branch='ELECTRICAL & ELECTRONICS ENGINEERING' and semester='3' and division='A' AND course='B.E.' AND sid NOT IN ( SELECT s.sid FROM `attendance` a, studentdetails s WHERE a.sid=s.sid AND s.semester=a.semester AND s.branch='ELECTRICAL & ELECTRONICS ENGINEERING' AND s.course='B.E.' and s.semester='3' and s.division='A' and date='2013-08-01' and a.period='1') order by rollno
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)