&secy;2024-06-01

// Access the sales_data database
use sales_data

// Access the UserProfiles collection within the sales_data database
db.UserProfiles.find()
{
  "firstName": "John",
  "lastName": "Doe",
  "orderDate": "2024-06-01",
  "orderDetails": {
    "productId": "12345",
    "quantity": 2,
    "price": 19.99
  }
}

By following these conventions, you ensure that your database schema is clear, consistent, and less prone to errors related to case sensitivity across different operating systems.


db.sales_data.user_profiles.find()
db.sales_data.order_details.find()
{
  "firstName": "John",
  "lastName": "Doe",
  "orderDate": "2024-06-01"
}