I have the following problem.
1 client table that has relation to 1 table photos (respective client photos)
relationship 1 client for "n" photos;
In short:
Client has id, name.
photo has client_id, content (bytes).
I can not make a query that fetches all clients, but I want only one photo of each client
I need to select return this from each client:
RESULT THAT I EXPECT:
cliente.id,
cliente.nome,
foto.conteudo //uma foto para cada cliente.
WHY? I'm making a list of clients that shows only the photo and the name on the home page.