SHARE
TWEET

Untitled

a guest Aug 23rd, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. SELECT
  2.     M_VOTE.BATTLE_ID, USER_REG.USER_ID, NICKNAME, UI.URL USER_THUMBNAIL , BI.URL USER_IMAGE, DESCRIPTION ,COUNT(M_VOTE.VALUE) VALUE
  3. FROM M_BATTLE_USER
  4.          LEFT JOIN USER_REG ON M_BATTLE_USER.USER_ID = USER_REG.USER_ID
  5.          LEFT JOIN IMAGE UI ON USER_REG.IMAGE_ID = UI.ID
  6.          LEFT JOIN IMAGE BI ON M_BATTLE_USER.IMAGE_ID = BI.ID
  7.          LEFT JOIN M_VOTE ON M_BATTLE_USER.BATTLE_ID= M_VOTE.BATTLE_ID AND M_VOTE.USER_ID= USER_REG.USER_ID
  8. WHERE M_BATTLE_USER.BATTLE_ID = :battleId
  9. GROUP BY USER_REG.USER_ID
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top