a guest Jun 16th, 2019 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. SELECT *
  2. FROM rolpersona rp JOIN rolaccesos ra ON rp.rol = ra.rol RIGHT JOIN accesos a ON ra.acceso =
  3. WHERE persona = 7 OR a.acceso_padre = (SELECT FROM accesos s WHERE = a.acceso_padre)
  4. ORDER BY a.acceso_padre ASC
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