Comments (2)
Olá @gersonmachado
Eu sugiro o seguinte, ao invês de encadear no meio de outra consulta, primeiro gera uma tabela nova, como
Create table socios_agrupado AS
SELECT
socios.cnpj,
GROUP_CONCAT(socios.nome_socio) AS "SoCIOS"
FROM socios
GROUP BY socios.cnpj;
e depois usa essa tabela nova nas outras consultas.
Eu diria que só para gerar essa tabela (se conseguir) vai levar um tempão, talvez horas. Ao invês de fazer por código em python, roda a sql no DBBrowser
from cnpj-sqlite.
Obrigado!
Facilitou bastante e nem levou muito tempo, cerca de 2min.
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
- urllib.error.ContentTooShortError HOT 8
- Dados antigos da receita HOT 3
- Arquivos do Google Drive: estabelecimento sem Natureza Jurídica HOT 1
- versão do script para mysql
- Select From Where no DB Browser HOT 12
- Segundo código que preciso de ajuda
- Filtrando cooperativas e exportando o .csv HOT 2
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.