// Query to erase the record of the borrowed book where the fine was R50
db.borrowedbooks.deleteOne({ "fine": 50 });

// 1. Insert a test record that explicitly has a fine of 50
db.borrowedbooks.insertOne({ 
  "borrowID": 903, 
  "memberID": 503, 
  "bookID": 102, 
  "borrowDate": "2026-05-01", 
  "returnDate": "2026-05-20", 
  "fine": 50 
});

// 2. Execute the required assignment delete query
db.borrowedbooks.deleteOne({ "fine": 50 });

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: