DBMS
DBMS
switched to db EmployeeDB
EmployeeDB> db.employees.insertMany([
... ]);
...
acknowledged: true,
}
Problem Statements:
Ans :-
Ans :-
Q3. Consider the collection “Orders “ with the following types of doccuments
_id: ObjectId("50a8240b927d5d8b5891743c"),
cust_id: "abc123",
status: 'A',
price: 25,
}
Return the Total Price Per Customer
Ans :-
Ans :-
Q5. Consider each document in the zipcode collection has the following form:
"_id": "10280",
"state": "NY",
"pop": 5574,
}
Return the city wise population of the cities in the NY state.
Ans :-