Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Voli: Voli: l’elenco completo di tutte le Destinazioni divise per Nazioni in ordine alfabetico, mostrando le prime 5 destinazioni “top” per ogni paese
- db.parsed_data.aggregate(
- {$match : {"Destination.Country":"IT"}},
- {
- $group : {_id : "$Destination.City" ,"TotaleVoli" : { $sum : 1 }}
- },
- {$sort : {"Destination.City":1,"TotaleVoli" : -1})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement