Advertisement
ma39isy

Untitled

Sep 28th, 2023 (edited)
925
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. SELECT
  2.     *
  3. FROM
  4.     (
  5.     SELECT ROWNUM
  6.         ID,
  7.         T.EQUIVALENCYSUBJECTID,
  8.         T.MAPPINGTEMPORARYID,
  9.         T.NEWINDEXPOINT,
  10.         T.STUDENTID,
  11.         ST.FULLNAME,
  12.         S.CREDIT,
  13.         M.SUBJECTCODE,
  14.         S.SUBJECTNAME,
  15.         SUBSTR( S.ADMITSCHOOLYEAR, 2, 1 ) AS SEMESTERALL,
  16.         'NEW'
  17.     FROM
  18.         EQUIVALENCYMAPPINGTEMPORARY T
  19.         LEFT JOIN MASTERDATA.STUDENT ST ON ( T.STUDENTID = ST.STUDENTID )
  20.         LEFT JOIN EQUIVALENCYSUBJECTMAPPING M ON ( T.EQUIVALENCYSUBJECTID = M.EQUIVALENCYSUBJECTID AND ST.STUDYPROGRAMID = M.STUDYPROGRAMID )
  21.         LEFT JOIN SUBJECTS S ON ( M.SUBJECTID = S.SUBJECTID AND M.SUBJECTCODE = S.SUBJECTCODE AND M.STUDYPROGRAMID = S.STUDYPROGRAMID )
  22.     WHERE
  23.         T.STUDENTID = '104022380339'
  24.         AND T.NEWINDEXPOINT IS NOT NULL
  25.         AND S.SUBJECTCODE IN('EAJ1E4', 'EAJ4A2')
  26.     )
  27. ORDER BY
  28.     SEMESTERALL ASC,
  29.     SUBJECTNAME ASC
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement