The document details a MongoDB session where a user connects to a local MongoDB instance and performs various operations on a database named 'btlab3b1'. It includes inserting sales data, aggregating total revenue and quantity by category, and filtering results based on revenue thresholds. The results show that 'Electronics' generates the highest revenue and quantity among the categories.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
6 views3 pages
B 1
The document details a MongoDB session where a user connects to a local MongoDB instance and performs various operations on a database named 'btlab3b1'. It includes inserting sales data, aggregating total revenue and quantity by category, and filtering results based on revenue thresholds. The results show that 'Electronics' generates the highest revenue and quantity among the categories.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3
PS C:\Users\phung> mongosh
Current Mongosh Log ID: 67ea8fbcd2523b1f09b71235
Connecting to: mongodb://127.0.0.1:27017/? directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.4.2 Using MongoDB: 8.0.6 Using Mongosh: 2.4.2
For mongosh info see: https://www.mongodb.com/docs/mongodb-shell/
------ The server generated these startup warnings when booting 2025-03-27T23:50:20.213+07:00: Access control is not enabled for the database. Read and write access to data and configuration is unrestricted ------