Advertisement
Guest User

Untitled

a guest
Sep 19th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. select subjectname, classyear, div,dateon, count(*) as NoOfLecturesConducted
  2. from lectures group by subjectname, classyear, div,dateon
  3.  
  4. select teacherid, subjectname, div,dateon,classyear,count(*) as
  5. TotalStudents,count(case when attended = '1' then 1 else null end) as
  6. AttendedStudents from students group by teacherid, subjectname, div,dateon
  7. ,classyear
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement