Ver Mensaje Individual
  #3 (permalink)  
Antiguo 23/03/2015, 17:45
LuisTello
 
Fecha de Ingreso: marzo-2015
Ubicación: Cuernavaca Mor.
Mensajes: 3
Antigüedad: 9 años, 1 mes
Puntos: 0
Respuesta: Problema con Glassfish 4.0 y jdbc

Cita:
Iniciado por Libras Ver Mensaje
y el query???
Pensé que seria irrelevante, pero ahí está, gracias por responder.

Código SQL:
Ver original
  1. SELECT Clave,Usuario
  2. FROM empleados E
  3. LEFT JOIN (SELECT * FROM Rol_Empleado) RE ON RE.FK02_Empleado = E.Clave
  4. LEFT JOIN (SELECT * FROM Rol) R ON R.PK_Rol = RE.FK01_Rol
  5. WHERE Fase>0 AND Nivel IN (1,8,10,12,19,4,31) OR R.Descripcion = 'Mensajero_Urgencias'
  6. UNION SELECT 0,'Administrador'
  7. ORDER BY Usuario

:)

Última edición por gnzsoloyo; 23/03/2015 a las 19:07