myCompiler
English
Deutsch
English
Español
Français
Italiano
日本語
한국어
Nederlands
Polski
Português
Recent
Login
Sign up
Deutsch
English
Español
Français
Italiano
日本語
한국어
Nederlands
Polski
Português
Recent
Login
Sign up
M
@Muhle
2.4
MongoDB
2 hours ago
db.Borrowing.aggregate([ { $match: { fineAmount: { $gt: 0 } } }, { $group: { _id: null, totalFineAmount: { $sum: "$fineAmount" },
QUESTION 2.6
MongoDB
2 hours ago
db.Borrowing.aggregate([ { $lookup: { from: "Member", localField: "memberID", foreignField: "memberID", as: "memberDetails" } }, {
question 2.5
MongoDB
2 hours ago
db.Borrowing.deleteMany({ fineAmount: { $gt: 0 } });
QUESTION 2.3 ITDSA
MongoDB
3 hours ago
db.Book.find( { publicationYear: { $gt: 2026 } }, { ISBN: 1, title: 1, publicationYear: 1, authorID: 1, publisherID: 1, stock: 1, isAvailable: 1,
QUESTION 2.4
MongoDB
3 days ago
db.Fine.insertOne({ fineID: "F001", amount: 50 }); db.Fine.insertOne({ fineID: "F002", amount: 0 }); db.Fine.find(); var total = 0; db.Fine.find().forEach(function(doc) { total = total + doc.amount; }); total;
QUESTION 2.3 ITDSA
MongoDB
3 days ago
print("\n=== Books Published After 2026 ==="); db.Book.find({ publicationYear: { $gt: 2026 } }).pretty(); print("\n=== Books Published in 2025 or Later (For Testing) ==="); db.Book.find({ publicationYear: { $gte: 2025 } }).pretty();
Previous
Next page