Advertisement
ma39isy

Untitled

Jan 2nd, 2024
1,384
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. SELECT * FROM
  2.                     ( SELECT STUDENTID, SUBJECTCODE, SUBJECTNAME, STUDYPROGRAMNAME, SCHOOLPERIODE, INDEXPOINT, SUBJECTID, COURSESTUDYPROGRAMID, TOTALCHANGE, ACTIVESTATUS, ACTIVESTATUS1, EVIDANCEURL, ROWNUM rnum,TOTALROWS FROM
  3.                     (
  4.                         SELECT ZZZ.*,COUNT(*) over () TOTALROWS FROM (
  5.                             SELECT * FROM (SELECT FG.*, (FG.SCHOOLYEAR||'/'||FG.SEMESTER) SCHOOLPERIODE, C.TOTALCHANGE, C.ACTIVESTATUS1, EVIDANCEURL FROM FINALGRADE_ALL_STATUS FG
  6.         LEFT JOIN (
  7.             SELECT
  8.             STUDENTID,
  9.             SUBJECTID,
  10.             ACTIVESTATUS AS ACTIVESTATUS1,
  11.             EVIDANCEURL,
  12.             SCHOOLYEAR,
  13.             SEMESTER,
  14.             COUNT( STUDENTID ) TOTALCHANGE
  15.         FROM
  16.             COMPLETECOURSEPOINTCHANGE
  17.         WHERE
  18.             APPROVALSTATUS IS NULL
  19.         GROUP BY
  20.             STUDENTID,
  21.             SUBJECTID,
  22.             SCHOOLYEAR,
  23.             SEMESTER,
  24.             ACTIVESTATUS,
  25.             EVIDANCEURL
  26.         ) C ON (FG.STUDENTID=C.STUDENTID AND FG.SUBJECTID=C.SUBJECTID AND FG.SCHOOLYEAR=C.SCHOOLYEAR AND FG.SEMESTER=C.SEMESTER)
  27.         WHERE FG.STUDENTID = '103012380554'  )  
  28.                         )ZZZ
  29.  
  30.                     ) a
  31.                     WHERE ROWNUM <= 20 )
  32.                     WHERE rnum  >= 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement