1
I have the following problem.
1 table client that has relation with 1 table photos (respective photos from client)
1 client ratio for "n" photos;
In short:
client has id, name.
photo possesses cliente_id, content (bytes).
I can’t do a query that searches all clients but I just want to a photo of each client
I need the select to return this from each client:
OUTCOME THAT I HOPE:
cliente.id,
cliente.nome,
foto.conteudo //uma foto para cada cliente.
BECAUSE? I’m making a list of customers that shows only the photo and the name on the homepage.
A photo, but which one? Any one?
– bfavaretto
any of the other table, but it has to be a.
– Skywalker