Guest User

Untitled

a guest
Jul 22nd, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. SELECT marker.*,
  2. SUM(IFNULL(marker.MAR_USER = map.MAP_USER,0)) AS owned
  3. FROM `marker`
  4. LEFT JOIN map_content ON (marker.MAR_ID=map_content.MAPC_MARKER)
  5. LEFT JOIN map ON (map_content.MAPC_MAP=map.MAP_ID AND (map_id IS NULL OR map_id<>63))
  6. WHERE marker.MAR_USER=18
  7. GROUP BY marker.MAR_ID
  8. HAVING owned=0
Add Comment
Please, Sign In to add comment