Skip to content

Commit

Permalink
+1 consulta
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardofl committed Mar 27, 2015
1 parent 86407a6 commit 4138179
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions AfghanWarDiary/consultas.sql
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,6 @@ select friendly_kia, enemy_kia, civilian_kia, host_nation_kia, enemy_kia + frien

-- total de mortes nas 10 ações com mais mortes, por tipo de morte
select sum(friendly_kia), sum(enemy_kia), sum(civilian_kia), sum(host_nation_kia), sum(total) from (select friendly_kia, enemy_kia, civilian_kia, host_nation_kia, enemy_kia + friendly_kia + civilian_kia + host_nation_kia as total from diary order by total desc limit 10);

-- história da operação com mais mortes
select summary from diary where enemy_kia = 181;

0 comments on commit 4138179

Please sign in to comment.