DELETE FROM agenda_tarefa WHERE idPrimario ='-1773167863295' - 110;
DELETE FROM agenda_tarefa WHERE idPrimario ='-1773167959242' - 110;
DELETE FROM agenda_tarefa WHERE idPrimario ='-1773167983566' - 110;
DELETE FROM agenda_tarefa WHERE idPrimario ='-1773235784127' - 110;
DELETE FROM agenda_tarefa WHERE idPrimario ='-1773235776842' - 110;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1773167922168','999','','0','2026-03-10','2026-03-06','08:00:00','18:00:00','Finalizado','110','110','','-1773167922168','','') - 110;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1773167974269','1','','855','2026-03-10','2026-03-10','08:00:00','18:00:00','Finalizado','110','110','','-1773167974269','','') - 110;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1773167974269','1','','855','2026-03-10','2026-03-10','','','','','110','436501','-1773168223150','','') - 110;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1773167974269','1','','855','2026-03-10','2026-03-10','','','','','110','86801','-1773173935756','','') - 110;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1773234300415','1','','855','2026-03-11','2026-03-11','08:00:00','18:00:00','Finalizado','110','110','','-1773234300415','','') - 110;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1773234300415','1','','855','2026-03-11','2026-03-11','','','','','110','793301','-1773234323008','','') - 110;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1773235541460','1','','855','2026-03-11','2026-03-11','08:00:00','18:00:00','Finalizado','110','110','','-1773235541460','','') - 110;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1773235541460','1','','855','2026-03-11','2026-03-11','','','','','110','20230201','-1773235562677','','') - 110;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1773248683397','1','','855','2026-03-11','2026-03-11','08:00:00','18:00:00','Finalizado','110','110','','-1773248683397','','') - 110;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1773248683397','1','','855','2026-03-11','2026-03-11','','','','','110','32234301','-1773248735687','','') - 110;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1773248683397','1','','855','2026-03-11','2026-03-11','','','','','110','30544901','-1773248749638','','') - 110;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1773248683397','1','','855','2026-03-11','2026-03-11','','','','','110','20238801','-1773248767181','','') - 110;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1773248683397','1','','855','2026-03-11','2026-03-11','','','','','110','31325601','-1773248780261','','') - 110;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1773438200978','1','','855','2026-03-13','2026-03-12','08:00:00','18:00:00','Finalizado','110','110','','-1773438200978','','') - 110;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1773438259964','999','','0','2026-03-13','2026-03-13','08:00:00','18:00:00','Finalizado','110','110','','-1773438259964','','') - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773168223150','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773168223150','102','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773168223150','103','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773168223150','104','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773168223150','105','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773168223150','106','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773168223150','107','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773168223150','108','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773168223150','109','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773168223150','110','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773168223150','111','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773168223150','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773173935756','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773173935756','102','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773173935756','103','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773173935756','104','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773173935756','105','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773173935756','106','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773173935756','107','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773173935756','108','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773173935756','109','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773173935756','110','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773173935756','111','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773173935756','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773234323008','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773234323008','102','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773234323008','103','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773234323008','104','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773234323008','105','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773234323008','106','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773234323008','107','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773234323008','108','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773234323008','109','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773234323008','110','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773234323008','111','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773234323008','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773235562677','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773235562677','102','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773235562677','103','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773235562677','104','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773235562677','105','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773235562677','106','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773235562677','107','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773235562677','108','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773235562677','109','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773235562677','110','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773235562677','111','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773235562677','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773248749638','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773248749638','102','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773248749638','103','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773248749638','104','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773248749638','105','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773248749638','106','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773248749638','107','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773248749638','108','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773248749638','109','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773248749638','110','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773248749638','111','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773248749638','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773248735687','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773248735687','102','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773248735687','103','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773248735687','104','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773248735687','105','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773248735687','106','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773248735687','107','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773248735687','108','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773248735687','109','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773248735687','110','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773248735687','111','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773248735687','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773248767181','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773248767181','102','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773248767181','103','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773248767181','104','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773248767181','105','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773248767181','106','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773248767181','107','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773248767181','108','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773248767181','109','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773248767181','110','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773248767181','111','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773248767181','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773248780261','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773248780261','102','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773248780261','103','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773248780261','104','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773248780261','105','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773248780261','106','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773248780261','107','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773248780261','108','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773248780261','109','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773248780261','110','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773248780261','111','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1773248780261','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_desenvolvimento_equipe (tarefa, prazo, feedback, acao) values ('-1773167922168','2026-03-06','','hospital') - 110;
INSERT INTO agenda_resposta_desenvolvimento_equipe (tarefa, prazo, feedback, acao) values ('-1773167974269','2026-04-10','','urgente organizar as 2 lojas visitadas .e vamos atrás de promotor') - 110;
INSERT INTO agenda_resposta_desenvolvimento_equipe (tarefa, prazo, feedback, acao) values ('-1773234300415','2026-03-11','precisa fazer passos da venda .','nao fez levantantamento neste pdv mostrou so lista de promoções. nao foi ao depósito.') - 110;
INSERT INTO agenda_resposta_desenvolvimento_equipe (tarefa, prazo, feedback, acao) values ('-1773235541460','2026-03-11','','mercado Central cadastrar intens novos procurar oportunidades fazer levantamento na folha .') - 110;
INSERT INTO agenda_resposta_desenvolvimento_equipe (tarefa, prazo, feedback, acao) values ('-1773248683397','2026-04-11','','precisa abrir novos Clientes em outra cidade muito baixo os clientes de hoje') - 110;
INSERT INTO agenda_resposta_desenvolvimento_equipe (tarefa, prazo, feedback, acao) values ('-1773438200978','2026-03-12','','reuniao e retorno a chapeco') - 110;
INSERT INTO agenda_resposta_desenvolvimento_equipe (tarefa, prazo, feedback, acao) values ('-1773438259964','2026-03-13','','rota em palmitos xopeer A1') - 110;
UPDATE agenda_tarefa SET idPrimario = 55798 WHERE idPrimario = -1773167922168 - 110;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 55798 WHERE tarefa = -1773167922168 - 110;
UPDATE agenda_tarefa SET idPrimario = 55799 WHERE idPrimario = -1773167974269 - 110;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 55799 WHERE tarefa = -1773167974269 - 110;
UPDATE agenda_resposta_formulario SET tarefa = 55800 WHERE tarefa = -1773168223150 - 110;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 55800 WHERE tarefa = -1773168223150 - 110;
UPDATE agenda_resposta_formulario SET tarefa = 55801 WHERE tarefa = -1773173935756 - 110;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 55801 WHERE tarefa = -1773173935756 - 110;
UPDATE agenda_tarefa SET idPrimario = 55802 WHERE idPrimario = -1773234300415 - 110;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 55802 WHERE tarefa = -1773234300415 - 110;
UPDATE agenda_resposta_formulario SET tarefa = 55803 WHERE tarefa = -1773234323008 - 110;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 55803 WHERE tarefa = -1773234323008 - 110;
UPDATE agenda_tarefa SET idPrimario = 55804 WHERE idPrimario = -1773235541460 - 110;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 55804 WHERE tarefa = -1773235541460 - 110;
UPDATE agenda_resposta_formulario SET tarefa = 55805 WHERE tarefa = -1773235562677 - 110;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 55805 WHERE tarefa = -1773235562677 - 110;
UPDATE agenda_tarefa SET idPrimario = 55806 WHERE idPrimario = -1773248683397 - 110;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 55806 WHERE tarefa = -1773248683397 - 110;
UPDATE agenda_resposta_formulario SET tarefa = 55807 WHERE tarefa = -1773248735687 - 110;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 55807 WHERE tarefa = -1773248735687 - 110;
UPDATE agenda_resposta_formulario SET tarefa = 55808 WHERE tarefa = -1773248749638 - 110;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 55808 WHERE tarefa = -1773248749638 - 110;
UPDATE agenda_resposta_formulario SET tarefa = 55809 WHERE tarefa = -1773248767181 - 110;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 55809 WHERE tarefa = -1773248767181 - 110;
UPDATE agenda_resposta_formulario SET tarefa = 55810 WHERE tarefa = -1773248780261 - 110;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 55810 WHERE tarefa = -1773248780261 - 110;
UPDATE agenda_tarefa SET idPrimario = 55811 WHERE idPrimario = -1773438200978 - 110;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 55811 WHERE tarefa = -1773438200978 - 110;
UPDATE agenda_tarefa SET idPrimario = 55812 WHERE idPrimario = -1773438259964 - 110;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 55812 WHERE tarefa = -1773438259964 - 110;
update agenda_resposta_formulario a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 110;
update agenda_resposta_desenvolvimento_equipe a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 110;
insert into agenda_tarefa (idPrimario, assunto, vendedor, dataCriacao, dataInsercao, data, horario_inicial, horario_final, usuario, supervisor, idOriginal, observacao, clientes, resumo, status) select date_format(now(),'%Y%m%d%H%i%s') * -1, 999, b.vendedor, curdate(), now(), a.prazo, '08:00:00', '08:00:00', b.supervisor, b.supervisor, date_format(now(),'%Y%m%d%H%i%s') * -1, a.acao, '', '', 'Pendente' FROM agenda_resposta_desenvolvimento_equipe a, agenda_tarefa b where a.tarefaAgendada is null and a.tarefa = b.id ; - 110;
update agenda_tarefa set idPrimario = id where idPrimario = idOriginal; - 110;
update agenda_resposta_desenvolvimento_equipe aa set aa.tarefaAgendada = 1 where aa.tarefaAgendada is null; - 110;
sqlCabecalho-> SELECT a.idPrimario,
f.descricao,
concat(b.supervisor,' - ',g.nome) supervisor,
concat(b.vendedor,' - ',h.nome) vendedor,
DATE_FORMAT(b.data, '%d/%m/%Y') as data,
b.horario_inicial,
b.horario_final,
b.supervisor,
b.vendedor
FROM agenda_tarefa a, agenda_tarefa b
left join agenda_assunto f on b.assunto = f.id
left join vendedor g on b.supervisor = g.id
left join vendedor h on b.vendedor = h.id,
agenda_resposta_formulario c
left join agenda_item d on c.item = d.id
left join agenda_grupo e on d.grupo = e.id
WHERE a.idPrimario = b.id
AND a.id = c.tarefa
AND a.idPrimario = '55798'
GROUP BY a.idPrimario - 110;
Binding output parameters deu certo: ( 0) - 110;
FORM VENDEDOR 20 - 110;
GRUPO->
Grupos:
- 110;
Respostas->Questões:
| Grupo | Questes | Qtd | Percentual |
|---|
- 110;
sqlCabecalho-> SELECT a.idPrimario,
f.descricao,
concat(b.supervisor,' - ',g.nome) supervisor,
concat(b.vendedor,' - ',h.nome) vendedor,
DATE_FORMAT(b.data, '%d/%m/%Y') as data,
b.horario_inicial,
b.horario_final,
b.supervisor,
b.vendedor
FROM agenda_tarefa a, agenda_tarefa b
left join agenda_assunto f on b.assunto = f.id
left join vendedor g on b.supervisor = g.id
left join vendedor h on b.vendedor = h.id,
agenda_resposta_formulario c
left join agenda_item d on c.item = d.id
left join agenda_grupo e on d.grupo = e.id
WHERE a.idPrimario = b.id
AND a.id = c.tarefa
AND a.idPrimario = '55799'
GROUP BY a.idPrimario - 110;
Binding output parameters deu certo: ( 0) - 110;
FORM VENDEDOR 20 - 110;
GRUPO->Grupos:
| Grupo |
Qtd |
Percentual |
| 1 - VISITA PLENA |
24 |
66.67 |
- 110;
Respostas->Questões:
| Grupo | Questes | Qtd | Percentual |
|---|
| 1 - VISITA PLENA |
101 - 1 - É UMA VISITA NO ROTEIRO DO DIA? |
2 |
100.00 |
| 1 - VISITA PLENA |
102 - 2 - PLANEJOU A ROTA DO DIA, QUANTIDADE DE CLIENTES, AÇÕES LIBERADAS, PEDIDOS PENDENTES?
|
2 |
100.00 |
| 1 - VISITA PLENA |
103 - 3 - FEZ O MINUTO DE OURO - ANTES DE ENTRAR NA LOJA ANALISANDO O CLIENTE, LIMITE DE CRÉDITO, MIX, VOLUME ATÉ A DATA E ITEM DESAFIO QUE INCLUIREMOS NA PROPOSTA? |
2 |
100.00 |
| 1 - VISITA PLENA |
104 - 4 - VENDEDOR UTILIZOU A PAUTA / LÂMINA?
|
2 |
100.00 |
| 1 - VISITA PLENA |
105 - 5- FEZ LEITURA DE LOJA? ANALISOU O PREÇO? MONTOU A PROPOSTA ANALISANDO NOSSAS MARCAS E CONCORRENTES? |
2 |
100.00 |
| 1 - VISITA PLENA |
106 - 6- A LOJA POSSUI AÇÕES DE MERCHAN, PONTA, ILHA OU EXPOSITOR?
|
2 |
50.00 |
| 1 - VISITA PLENA |
107 - 7- FEZ A NEGOCIAÇÃO COM BASE NO MINUTO DE OURO E NA LEITURA DE LOJA?
|
2 |
50.00 |
| 1 - VISITA PLENA |
108 - 8- ORIENTA QUANTO A PRÁTICA DE PREÇOS? NEGOCIOU PREÇOS E ITENS COM DESCONTO?
|
2 |
0.00 |
| 1 - VISITA PLENA |
109 - 9 - FEZ A INTRODUÇÃO DE ALGUM ITEM OU CADASTRO NOVO?
|
2 |
0.00 |
| 1 - VISITA PLENA |
110 - 10 - ABASTECEU, COLOCOU MATERIAL, ORGANIZOU GÔNDOLAS E RUPTURAS, ARRUMOU E/OU COLOCOU PREÇO?
|
2 |
50.00 |
| 1 - VISITA PLENA |
111 - 11- REALIZOU O FECHAMENTO DA VISITA REPASSANDO OS ITENS, FORMA DE PAGAMENTO, PREVISÃO DE ENTREGA E DATA DA PRÓXIMA VISITA?
|
2 |
50.00 |
| 1 - VISITA PLENA |
112 - 12 - TRANSMITIU O PEDIDO AO SAIR DO CLIENTE? |
2 |
100.00 |
- 110;
statusNaoFinalizado - 110;
statusNaoFinalizado - 110;
sqlCabecalho-> SELECT a.idPrimario,
f.descricao,
concat(b.supervisor,' - ',g.nome) supervisor,
concat(b.vendedor,' - ',h.nome) vendedor,
DATE_FORMAT(b.data, '%d/%m/%Y') as data,
b.horario_inicial,
b.horario_final,
b.supervisor,
b.vendedor
FROM agenda_tarefa a, agenda_tarefa b
left join agenda_assunto f on b.assunto = f.id
left join vendedor g on b.supervisor = g.id
left join vendedor h on b.vendedor = h.id,
agenda_resposta_formulario c
left join agenda_item d on c.item = d.id
left join agenda_grupo e on d.grupo = e.id
WHERE a.idPrimario = b.id
AND a.id = c.tarefa
AND a.idPrimario = '55802'
GROUP BY a.idPrimario - 110;
Binding output parameters deu certo: ( 0) - 110;
FORM VENDEDOR 20 - 110;
GRUPO->Grupos:
| Grupo |
Qtd |
Percentual |
| 1 - VISITA PLENA |
12 |
41.67 |
- 110;
Respostas->Questões:
| Grupo | Questes | Qtd | Percentual |
|---|
| 1 - VISITA PLENA |
101 - 1 - É UMA VISITA NO ROTEIRO DO DIA? |
1 |
100.00 |
| 1 - VISITA PLENA |
102 - 2 - PLANEJOU A ROTA DO DIA, QUANTIDADE DE CLIENTES, AÇÕES LIBERADAS, PEDIDOS PENDENTES?
|
1 |
100.00 |
| 1 - VISITA PLENA |
103 - 3 - FEZ O MINUTO DE OURO - ANTES DE ENTRAR NA LOJA ANALISANDO O CLIENTE, LIMITE DE CRÉDITO, MIX, VOLUME ATÉ A DATA E ITEM DESAFIO QUE INCLUIREMOS NA PROPOSTA? |
1 |
0.00 |
| 1 - VISITA PLENA |
104 - 4 - VENDEDOR UTILIZOU A PAUTA / LÂMINA?
|
1 |
100.00 |
| 1 - VISITA PLENA |
105 - 5- FEZ LEITURA DE LOJA? ANALISOU O PREÇO? MONTOU A PROPOSTA ANALISANDO NOSSAS MARCAS E CONCORRENTES? |
1 |
0.00 |
| 1 - VISITA PLENA |
106 - 6- A LOJA POSSUI AÇÕES DE MERCHAN, PONTA, ILHA OU EXPOSITOR?
|
1 |
0.00 |
| 1 - VISITA PLENA |
107 - 7- FEZ A NEGOCIAÇÃO COM BASE NO MINUTO DE OURO E NA LEITURA DE LOJA?
|
1 |
0.00 |
| 1 - VISITA PLENA |
108 - 8- ORIENTA QUANTO A PRÁTICA DE PREÇOS? NEGOCIOU PREÇOS E ITENS COM DESCONTO?
|
1 |
0.00 |
| 1 - VISITA PLENA |
109 - 9 - FEZ A INTRODUÇÃO DE ALGUM ITEM OU CADASTRO NOVO?
|
1 |
0.00 |
| 1 - VISITA PLENA |
110 - 10 - ABASTECEU, COLOCOU MATERIAL, ORGANIZOU GÔNDOLAS E RUPTURAS, ARRUMOU E/OU COLOCOU PREÇO?
|
1 |
0.00 |
| 1 - VISITA PLENA |
111 - 11- REALIZOU O FECHAMENTO DA VISITA REPASSANDO OS ITENS, FORMA DE PAGAMENTO, PREVISÃO DE ENTREGA E DATA DA PRÓXIMA VISITA?
|
1 |
100.00 |
| 1 - VISITA PLENA |
112 - 12 - TRANSMITIU O PEDIDO AO SAIR DO CLIENTE? |
1 |
100.00 |
- 110;
statusNaoFinalizado - 110;
sqlCabecalho-> SELECT a.idPrimario,
f.descricao,
concat(b.supervisor,' - ',g.nome) supervisor,
concat(b.vendedor,' - ',h.nome) vendedor,
DATE_FORMAT(b.data, '%d/%m/%Y') as data,
b.horario_inicial,
b.horario_final,
b.supervisor,
b.vendedor
FROM agenda_tarefa a, agenda_tarefa b
left join agenda_assunto f on b.assunto = f.id
left join vendedor g on b.supervisor = g.id
left join vendedor h on b.vendedor = h.id,
agenda_resposta_formulario c
left join agenda_item d on c.item = d.id
left join agenda_grupo e on d.grupo = e.id
WHERE a.idPrimario = b.id
AND a.id = c.tarefa
AND a.idPrimario = '55804'
GROUP BY a.idPrimario - 110;
Binding output parameters deu certo: ( 0) - 110;
FORM VENDEDOR 20 - 110;
GRUPO->Grupos:
| Grupo |
Qtd |
Percentual |
| 1 - VISITA PLENA |
12 |
83.33 |
- 110;
Respostas->Questões:
| Grupo | Questes | Qtd | Percentual |
|---|
| 1 - VISITA PLENA |
101 - 1 - É UMA VISITA NO ROTEIRO DO DIA? |
1 |
100.00 |
| 1 - VISITA PLENA |
102 - 2 - PLANEJOU A ROTA DO DIA, QUANTIDADE DE CLIENTES, AÇÕES LIBERADAS, PEDIDOS PENDENTES?
|
1 |
100.00 |
| 1 - VISITA PLENA |
103 - 3 - FEZ O MINUTO DE OURO - ANTES DE ENTRAR NA LOJA ANALISANDO O CLIENTE, LIMITE DE CRÉDITO, MIX, VOLUME ATÉ A DATA E ITEM DESAFIO QUE INCLUIREMOS NA PROPOSTA? |
1 |
0.00 |
| 1 - VISITA PLENA |
104 - 4 - VENDEDOR UTILIZOU A PAUTA / LÂMINA?
|
1 |
100.00 |
| 1 - VISITA PLENA |
105 - 5- FEZ LEITURA DE LOJA? ANALISOU O PREÇO? MONTOU A PROPOSTA ANALISANDO NOSSAS MARCAS E CONCORRENTES? |
1 |
100.00 |
| 1 - VISITA PLENA |
106 - 6- A LOJA POSSUI AÇÕES DE MERCHAN, PONTA, ILHA OU EXPOSITOR?
|
1 |
0.00 |
| 1 - VISITA PLENA |
107 - 7- FEZ A NEGOCIAÇÃO COM BASE NO MINUTO DE OURO E NA LEITURA DE LOJA?
|
1 |
100.00 |
| 1 - VISITA PLENA |
108 - 8- ORIENTA QUANTO A PRÁTICA DE PREÇOS? NEGOCIOU PREÇOS E ITENS COM DESCONTO?
|
1 |
100.00 |
| 1 - VISITA PLENA |
109 - 9 - FEZ A INTRODUÇÃO DE ALGUM ITEM OU CADASTRO NOVO?
|
1 |
100.00 |
| 1 - VISITA PLENA |
110 - 10 - ABASTECEU, COLOCOU MATERIAL, ORGANIZOU GÔNDOLAS E RUPTURAS, ARRUMOU E/OU COLOCOU PREÇO?
|
1 |
100.00 |
| 1 - VISITA PLENA |
111 - 11- REALIZOU O FECHAMENTO DA VISITA REPASSANDO OS ITENS, FORMA DE PAGAMENTO, PREVISÃO DE ENTREGA E DATA DA PRÓXIMA VISITA?
|
1 |
100.00 |
| 1 - VISITA PLENA |
112 - 12 - TRANSMITIU O PEDIDO AO SAIR DO CLIENTE? |
1 |
100.00 |
- 110;
statusNaoFinalizado - 110;
sqlCabecalho-> SELECT a.idPrimario,
f.descricao,
concat(b.supervisor,' - ',g.nome) supervisor,
concat(b.vendedor,' - ',h.nome) vendedor,
DATE_FORMAT(b.data, '%d/%m/%Y') as data,
b.horario_inicial,
b.horario_final,
b.supervisor,
b.vendedor
FROM agenda_tarefa a, agenda_tarefa b
left join agenda_assunto f on b.assunto = f.id
left join vendedor g on b.supervisor = g.id
left join vendedor h on b.vendedor = h.id,
agenda_resposta_formulario c
left join agenda_item d on c.item = d.id
left join agenda_grupo e on d.grupo = e.id
WHERE a.idPrimario = b.id
AND a.id = c.tarefa
AND a.idPrimario = '55806'
GROUP BY a.idPrimario - 110;
Binding output parameters deu certo: ( 0) - 110;
FORM VENDEDOR 20 - 110;
GRUPO->Grupos:
| Grupo |
Qtd |
Percentual |
| 1 - VISITA PLENA |
48 |
27.08 |
- 110;
Respostas->Questões:
| Grupo | Questes | Qtd | Percentual |
|---|
| 1 - VISITA PLENA |
101 - 1 - É UMA VISITA NO ROTEIRO DO DIA? |
4 |
100.00 |
| 1 - VISITA PLENA |
102 - 2 - PLANEJOU A ROTA DO DIA, QUANTIDADE DE CLIENTES, AÇÕES LIBERADAS, PEDIDOS PENDENTES?
|
4 |
75.00 |
| 1 - VISITA PLENA |
103 - 3 - FEZ O MINUTO DE OURO - ANTES DE ENTRAR NA LOJA ANALISANDO O CLIENTE, LIMITE DE CRÉDITO, MIX, VOLUME ATÉ A DATA E ITEM DESAFIO QUE INCLUIREMOS NA PROPOSTA? |
4 |
0.00 |
| 1 - VISITA PLENA |
104 - 4 - VENDEDOR UTILIZOU A PAUTA / LÂMINA?
|
4 |
25.00 |
| 1 - VISITA PLENA |
105 - 5- FEZ LEITURA DE LOJA? ANALISOU O PREÇO? MONTOU A PROPOSTA ANALISANDO NOSSAS MARCAS E CONCORRENTES? |
4 |
0.00 |
| 1 - VISITA PLENA |
106 - 6- A LOJA POSSUI AÇÕES DE MERCHAN, PONTA, ILHA OU EXPOSITOR?
|
4 |
0.00 |
| 1 - VISITA PLENA |
107 - 7- FEZ A NEGOCIAÇÃO COM BASE NO MINUTO DE OURO E NA LEITURA DE LOJA?
|
4 |
0.00 |
| 1 - VISITA PLENA |
108 - 8- ORIENTA QUANTO A PRÁTICA DE PREÇOS? NEGOCIOU PREÇOS E ITENS COM DESCONTO?
|
4 |
0.00 |
| 1 - VISITA PLENA |
109 - 9 - FEZ A INTRODUÇÃO DE ALGUM ITEM OU CADASTRO NOVO?
|
4 |
0.00 |
| 1 - VISITA PLENA |
110 - 10 - ABASTECEU, COLOCOU MATERIAL, ORGANIZOU GÔNDOLAS E RUPTURAS, ARRUMOU E/OU COLOCOU PREÇO?
|
4 |
0.00 |
| 1 - VISITA PLENA |
111 - 11- REALIZOU O FECHAMENTO DA VISITA REPASSANDO OS ITENS, FORMA DE PAGAMENTO, PREVISÃO DE ENTREGA E DATA DA PRÓXIMA VISITA?
|
4 |
25.00 |
| 1 - VISITA PLENA |
112 - 12 - TRANSMITIU O PEDIDO AO SAIR DO CLIENTE? |
4 |
100.00 |
- 110;
statusNaoFinalizado - 110;
statusNaoFinalizado - 110;
statusNaoFinalizado - 110;
statusNaoFinalizado - 110;
sqlCabecalho-> SELECT a.idPrimario,
f.descricao,
concat(b.supervisor,' - ',g.nome) supervisor,
concat(b.vendedor,' - ',h.nome) vendedor,
DATE_FORMAT(b.data, '%d/%m/%Y') as data,
b.horario_inicial,
b.horario_final,
b.supervisor,
b.vendedor
FROM agenda_tarefa a, agenda_tarefa b
left join agenda_assunto f on b.assunto = f.id
left join vendedor g on b.supervisor = g.id
left join vendedor h on b.vendedor = h.id,
agenda_resposta_formulario c
left join agenda_item d on c.item = d.id
left join agenda_grupo e on d.grupo = e.id
WHERE a.idPrimario = b.id
AND a.id = c.tarefa
AND a.idPrimario = '55811'
GROUP BY a.idPrimario - 110;
Binding output parameters deu certo: ( 0) - 110;
FORM VENDEDOR 20 - 110;
GRUPO->Grupos:
- 110;
Respostas->Questões:
| Grupo | Questes | Qtd | Percentual |
|---|
- 110;
sqlCabecalho-> SELECT a.idPrimario,
f.descricao,
concat(b.supervisor,' - ',g.nome) supervisor,
concat(b.vendedor,' - ',h.nome) vendedor,
DATE_FORMAT(b.data, '%d/%m/%Y') as data,
b.horario_inicial,
b.horario_final,
b.supervisor,
b.vendedor
FROM agenda_tarefa a, agenda_tarefa b
left join agenda_assunto f on b.assunto = f.id
left join vendedor g on b.supervisor = g.id
left join vendedor h on b.vendedor = h.id,
agenda_resposta_formulario c
left join agenda_item d on c.item = d.id
left join agenda_grupo e on d.grupo = e.id
WHERE a.idPrimario = b.id
AND a.id = c.tarefa
AND a.idPrimario = '55812'
GROUP BY a.idPrimario - 110;
Binding output parameters deu certo: ( 0) - 110;
FORM VENDEDOR 20 - 110;
GRUPO->Grupos:
- 110;
Respostas->Questões:
| Grupo | Questes | Qtd | Percentual |
|---|
- 110;