Advertisement
ma39isy

Untitled

Mar 6th, 2024
1,371
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. SELECT
  2.     *
  3. FROM
  4.     (
  5.     SELECT
  6.         STUDENTID,
  7.         COUNT(STUDENTID) TOTALMAHASISWA
  8.     FROM
  9.         COMPLETECOURSEPOINT a
  10.     JOIN SUBJECTS b
  11.             USING(SUBJECTID)
  12.     WHERE
  13.         a.SCHOOLYEAR = '2324'
  14.         AND a.SEMESTER = 1
  15.         AND (a.STUDYPROGRAMID = '41'
  16.             AND a.SUBJECTCODE = 'EBJ2E3'
  17.             AND a.INDEXPOINT IS NOT NULL)
  18.         OR (a.STUDYPROGRAMID = '42'
  19.             AND a.SUBJECTCODE = 'EAJ1C3'
  20.             AND a.INDEXPOINT IS NULL)
  21.     GROUP BY
  22.         STUDENTID
  23. )
  24. WHERE
  25.     TOTALMAHASISWA = 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement