Advertisement
Guest User

Untitled

a guest
Jan 10th, 2017
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. SELECT a.id, a.numerocontrato, a.id_cpf_cnpj, a.nome_completo, a.adesao, a.cpfoucnpj, a.cpfoucnpjnumero, a.data_nascimento, a.email, a.cep, a.rua,
  2. a.numero, a.bairro, a.cidade, a.estado, a.id_vendedor, a.id_forma_pagamento, a.id_forma, a.id_sexo, a.data_vencimento,
  3. a.id_revenda, a.id_plano, a.id_acomodacao, a.telefone, a.celular, a.nomedependente, a.cpfdependente, a.datanascimentodependente, a.planodependente,
  4. a.acomodacaodependente, a.grauparentescodependente, a.valordependente, a.total, a.quemcadastrou, a.data_hora_cadastro,
  5. b.nome_vendedor,
  6. c.forma_pagamento,
  7. d.nome_forma,
  8. e.sexo,
  9. f.nome_revenda,
  10. g.nome_plano,
  11. h.acomodacao
  12. FROM cadastro_clientes AS a
  13. INNER JOIN vendedor AS b ON b.id_vendedor = a.id_vendedor
  14. INNER JOIN forma_pagamento AS c ON c.id_forma_pagamento = a.id_forma_pagamento
  15. INNER JOIN forma AS d ON d.id_forma = a.id_forma
  16. INNER JOIN sexo AS e ON e.id_sexo = a.id_sexo
  17. INNER JOIN revenda AS f ON f.id_revenda = a.id_revenda
  18. INNER JOIN plano AS g ON g.id_plano = a.id_plano
  19. INNER JOIN acomodacao AS h ON h.id_acomodacao = a.id_acomodacao
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement