1
I’m trying to do a survey using INNER JOIN
in table service, the scheduler field.serv_id is a string "vector" and its value in the database is: '1, 2'
I did 3 Indsert’s in the service, the only problem is that the IN
only works when using (1.2) but in this case I can not define this way because each schedule has the id of a certain service
Even converting the whole field the result is the same as I did not find no splt function in mysql the case remains unsolved. If it is necessary to do the process in back-end I am using the Visualbasic programming language. Follows the code:
SELECT
agenda.agen_id,
agenda.agen_data,
agenda.agen_turno,
group_concat(servico.serv_nome),
agenda.agen_total,
profissional.prof_comissao,
agenda.agen_obs,
profissional.prof_nome,
cliente.cli_nome
FROM
agenda
INNER JOIN servico ON servico.serv_id *in (agenda.serv_id)*
INNER JOIN profissional ON agenda.prof_id = profissional.prof_id
INNER JOIN cliente ON agenda.cli_id = cliente.cli_id
Wendel, you got the result??
– rLinhares