Advertisement
ma39isy

Untitled

Jul 30th, 2024
417
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- GET USERNAME, NIM/NIP, AND NAME by USERNAME, NIM/NIP or NAME
  2. SELECT
  3.     USERID,
  4.     u.NAME,
  5.     u2.USERNAME
  6. FROM
  7.     USERS u
  8. JOIN USERLOGINMAPPING u2
  9.         USING(USERID)
  10. WHERE
  11.     NAME LIKE :SEARCH
  12.     OR u.USERNAME LIKE :SEARCH
  13.     OR u2.USERNAME = :SEARCH;
  14.  
  15. -- GET MODULEFILE by pageId
  16. SELECT
  17.     a2.URL,
  18.     MODULEFILE
  19. FROM
  20.     PAGES p
  21. JOIN PAGESORT p2
  22.         USING(PAGEID)
  23. JOIN MODULES m
  24.         USING(MODULEID)
  25. JOIN APPLICATIONPAGE a
  26.         USING(PAGEID)
  27. JOIN APPLICATIONS a2
  28.         USING(APPLICATIONID)
  29. WHERE
  30.     PAGEID = :PAGEID;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement