myCompiler myCompiler
Deutsch English Español Français Italiano 日本語 한국어 Nederlands Polski Português
Recent
Login Sign up
Recent
Login Sign up
R

@Rea21

Question 2.6

MongoDB
1 hour ago
use('EduvosLibrary'); // Insert member data db.member.insertOne({ memberID: "MEM001", firstName: "Lerato", lastName: "Khumalo", email: "lerato@gmail.com", phoneNo: "0821234567" });

Question 2.5

MongoDB
2 hours ago
use('EduvosLibrary'); //Iserted Data db.borrowedbooks.insertOne({ memberID: "MEM001", ISBN: "978-001", dateBorrowed: "2024-01-15", dueDate: "2024-02-15", returnDate: "2024-02-10", fineAmount: 0

Question 2.3

MongoDB
2 hours ago
use('EduvosLibrary'); // Insert books first db.book.insertOne({ ISBN: "978-001", title: "Database Systems", publicationYear: 2022 }); db.book.insertOne({

Question 2.4

MongoDB
2 hours ago
use('EduvosLibrary'); // Insert borrowedbooks data first db.borrowedbooks.insertOne({ memberID: "MEM001", ISBN: "978-001", dateBorrowed: "2024-01-15", dueDate: "2024-02-15", returnDate: "2024-02-10", fineAmount: 0

Question 2.3

MongoDB
2 hours ago
use('EduvosLibrary'); db.createCollection('book'); print('book collection created'); db.createCollection('author'); print('author collection created'); db.createCollection('bookauthor'); print('bookauthor collection created');
Previous Next page

Supported languages

Deno JavaScript NodeJS Python Ruby Go C C++ Java C# TypeScript PHP Bash R Octave (MATLAB) Fortran Lua Erlang SQL MySQL MongoDB Clojure D Perl Kotlin Swift Rust Assembly
© 2026 mycompiler.io
Terms of service Privacy policy Contact us