Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 3.144.16.40
select mk.fcollcode, mk.fdegree, mk.fexamno, mk.fsubcode,
concat(s.fsubname, ', ', s.fssubname) as fsubname, count(mk.fregno) as ftotcnt,
sum(case when ifnull(mk.fmarks,-1) = -1 then 1 else 0 end) as fpend
from marks mk, canddet cd, candsum cs, subject s
where mk.fdegree = s.fdegree and mk.fexamno = s.fexamno and mk.fsubcode = s.fcsubcode
and mk.fdegree = cd.fdegree and mk.fexamno = cd.fexamno and mk.fregno = cd.fregno
and cd.fdegree = s.fdegree and cd.fexamno = s.fexamno and cd.fsubcode = s.fsubcode
and cd.fdegree = cs.fdegree and cd.fregno = cs.fregno
and ifnull(cs.frecptdate,'') <> '' and ifnull(ftotalfee,0) > 0
and cd.fpresent = 'P' and ifnull(cd.fpassmth,'') = ''
and s.fintass = 'T' and s.fretain = 'T'
and mk.fdegree between 'BA2' and 'BA2' and mk.fexamno between 'B' and 'B'
and mk.fregno between 'A1500000' and 'A1599999'
group by mk.fcollcode, mk.fdegree, mk.fexamno, mk.fsubcode, s.fsubname, s.fssubname
having sum(case when ifnull(mk.fmarks,-1) = -1 then 1 else 0 end) > 0
order by mk.fcollcode, mk.fdegree, mk.fexamno, mk.fsubcode
|