Advertisement
contatowellington

Untitled

Jun 23rd, 2017
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. SELECT `cadastro_empresa`.*
  2. FROM `cadastro_empresa` INNER JOIN `cadastro_faixacep` ON `cadastro_empresa`.`id` = `cadastro_faixacep`.`idempresa`
  3. WHERE cep BETWEEN `cadastro_faixacep`.`cepinicio`and `cadastro_faixacep`.`cepfim`
  4. GROUP BY `cadastro_empresa`.`nomeempresa`
  5. ORDER BY `cadastro_empresa`.`id` ASC
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement