Posts

Showing posts from November, 2018

Década de 1970

Image
Este artigo ou secção contém fontes no fim do texto, mas que não são citadas no corpo do artigo , o que compromete a confiabilidade das informações. (desde dezembro de 2009) Por favor, melhore este artigo inserindo fontes no corpo do texto quando necessário. Esta página foi marcada para revisão, devido a incoerências e/ou dados de confiabilidade duvidosa (desde maio de 2011) . Se tem algum conhecimento sobre o tema, por favor, verifique e melhore a coerência e o rigor deste artigo. A década de 1970 , também referida como década de 70 ou ainda anos 70 , compreende o período de tempo entre 1º de janeiro de 1970 e 31 de dezembro de 1979. SÉCULOS: Século XIX — Século XX — Século XXI DÉCADAS: 1920 • 1930 • 1940 • 1950 • 1960 • 1970 • 1980 • 1990 • 2000 • 2010 • 2020 ANOS: 1970 • 1971 • 1972 • 1973 • 1974 • 1975 • 1976 • 1977 • 1978 • 1979 • 1980 Índice 1 Visão geral 1.1 Guerras e política 1.2 Economia 2 Mús

How to aggregate over two columns with duplicates in both, and then some?

Image
up vote 0 down vote favorite This is probably very simple but I'm stupid and stuck and failed to find a thread that quite matched my problem... I need to do an insert from a table, say tblGameRecords , that looks something like this: tblGameRecords(ID:match_no, soccer_team_id, stadium, fake_injuries, hair_wax, date) ...into another table, tblTeamRecords , that needs to look like this: tblTeamRecords(ID:soccer_team_id, stadium, fake_injuries, hair_wax, date) Now, my problem is that in tblGameRecords : 1. There are natural multiple occurrences of the same soccer_team_id 's. 2. There are natural multiple occurrences of the same date . 3. There are sometimes multiple occurrences of the same soccer_team_id on the same date (sigh...) I want to insert into tblTeamRecord one row per soccer_team_id . I want the