0
I have this table (centrodb.Infocontributors) that has the ids of all the other tables I do the join
in the database with this data:
I have this query:
SELECT B.NomeColaborador,
C.Ala,
D.Grupo,
E.Turno
FROM centrodb.RelacaoColab AS A LEFT OUTER JOIN centrodb.InfoColaboradores AS B
ON B.Id = A.IdColab LEFT OUTER JOIN centrodb.TiposAlas AS C
ON C.Id = A.IdAla LEFT OUTER JOIN centrodb.TiposGrupos AS D
ON D.Id = A.IdGrup LEFT OUTER JOIN centrodb.H_Turno AS E
ON E.Id = A.IdTurn
WHERE E.Turno = 'M' ORDER BY RAND() LIMIT 8
How do I not show up repeated these situations when generating the 8 employees of the 11 I have in the database table?
But if you do not put the other names of the columns that are in the
SELECT
gives error and when placing repeats the names of employees, the wings and the group– user87525