Хабр Курсы для всех
РЕКЛАМА
Практикум, Хекслет, SkyPro, авторские курсы — собрали всех и попросили скидки. Осталось выбрать!

Service Unavailable
The service is temporarily unavailable. Please try again later.
need={};data={};c = db.grades.find();while(c.hasNext()) {x = c.next();need.student = x.student_id;score = x.score;x=c.next();score = score + x.score;x = c.next(); score = score + x.score; data.avr = score/3;data.student=x.student_id; db.temp.update(need,data,{upsert:1})};db.temp.find({},{_id:0,student:1}).sort({avr:-1}).limit(1);
Homework 1.2 (1/1) 100% Problem Scores: 1/1
MongoDB для разработчиков