Advertisement
ma39isy

Untitled

May 22nd, 2024
1,205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. SELECT
  2.     A.SUBJECTID,
  3.     A.SUBJECTCODE,
  4.     A.CREDIT,
  5.     A.SUBJECTNAME
  6. FROM
  7.     ACADEMIC.SUBJECTS A
  8. JOIN ACADEMIC.VIEW_COURSE_TEAM_TEACHING B ON
  9.     (A.SUBJECTID = B.SUBJECTID)
  10. WHERE
  11.     A.ACTIVESTATUS = 'YA'
  12.     AND B.SCHOOLYEAR = '2324'
  13.     AND B.SEMESTER = '2'
  14.     AND B.ACTIVATEDSTATUS = 'YA'
  15.     AND (A.STUDYPROGRAMID = ''
  16.         OR TRIM(A.SUBJECTSERVICE)= '')
  17.     AND B.POSITION = 1
  18. GROUP BY
  19.     (A.SUBJECTID,
  20.     A.SUBJECTCODE,
  21.     A.CREDIT,
  22.     A.SUBJECTNAME)
  23. ORDER BY
  24.     A.SUBJECTCODE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement