Comments (1)
Para juntar as duas tabelas, vc abre o cnpj.db em um programa como o DB Browser for SQLite e roda uma sql como
create table estabelecimento_simples as
select *
from estabelecimento te
left join simples ts on ts.cnpj_basico=te.cnpj_basico
Isso irá criar uma tabela estabelecimento_simples (imagino que isso possa demorar). Dependendo do que vc está fazendo, deve ser melhor por um where limitando a sua consulta, ou criar algum índice.
from cnpj-sqlite.
Related Issues (20)
- Produtores Rurais HOT 1
- Meses anteriores HOT 3
- Consulta por CNAE
- Erro HOT 11
- DROP COLUMN etapa 3/21 HOT 2
- ERRO AO CARREGAR TABELA HOT 1
- Criação do CNPJ.db HOT 13
- AttributeError: 'Engine' object has no attribute 'execute' HOT 2
- Erro executando parte 5/21 HOT 2
- Erro ao executar o script "dados_cnpj_para_sqlite.py" HOT 1
- erro HOT 17
- Não é erro é uma curiosidade HOT 1
- [Dúvida] Erro de sintaxe SQLITE3 HOT 2
- urllib.error.ContentTooShortError HOT 8
- SQLALCHEMY 2.0 HOT 1
- sqlite3.DatabaseError: database disk image is malformed HOT 2
- Error Line 196 HOT 24
- acho que o banco que eu tenho já tem os cnae secundário, isso no mysql, pois importei o banco do sqlite HOT 7
- IndexError: list index out of range HOT 3
- Adicionar no script do Sqlite suporte a Primary Keys para CI/CD com ORMs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cnpj-sqlite.