I have this query:
SELECT
t1.usu_id,
t2.usu_nombre,
t2.usu_apellido
FROM
act_regisdiario t1
INNER JOIN
act_usuario t2
ON
(t2.usu_id = t1.usu_id)
WHERE
t1.rdi_fechacti != '2016-06-02 00:00:00'
AND t2.usu_admin = 0
GROUP BY
t2.usu_id
and the query work with 2 tables:
act_regisdiario:
and act_usuarios:
So i want yo select the users that have a different rdi_fechacti
. And in this case is : 2016-06-02 00:00:00
But this show me all usu_nombre
, but only Jean
have 2016-06-02 00:00:00
I need only show Jean
.
Sorry my english.