Posts by Natália Melgaço • 76 points
2 posts
- 
		1 votes2 answers870 viewsA: Adding total sum grouped to a new column Dataframe pysparkAdriana, I don’t understand the calculation to make your new column. If NEW_COL = (total sum of col1 by type - the value of col3) / (total Qtd of col1 by type - 1) then for first line of NEW_COL… 
- 
		5 votes1 answer83 viewsA: Query in two tablesHello! Just make a Join by the common key in both tables. Your code would look like this: SELECT Empresa.id, Empresa.cnpj, Filial.endereco FROM Empresa INNER JOIN Filial on… sqlanswered Natália Melgaço 76