I have a table actividad
that has two attributes: creadoID
and modificadoID
in relation to the table usuario
.
I tried to perform an activities query, where for each record I took the user's data from the person who created it and modified it.
I have the following query:
SELECT * FROM actividad
INNER JOIN usuario ON actividad.creadoID = usuario.id
OR actividad.modificadoID = usuario.id