Guest User

Untitled

a guest
Oct 19th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. DB::table('usuarios')->select('cn1','cn2')
  2. ->where('id', $id)
  3. ->join('empresa', 'usuarios.id', '=', 'empresa.fk_id_user')
  4. ->join('pais', 'empresa.fk_id_pais', '=', 'pais.id_pais')
  5. ->join('relacion_empre_catg', 'empresa.id_empre', '=', 'relacion_empre_catg.fk_id_empre')->groupBy('cn1,cn2')->get()
Add Comment
Please, Sign In to add comment