Saturday, March 28, 2015

M102: MongoDB for DBAs - Week 1 - Homework 1.2

Step 1:

Download the products.json

Step 2:

Import products.json using below command
mongoimport -d pcat -c products --type json --file C:\products.json





Step 3:

execute below steps
> use pcat
> db.products.find({type:"case"}).count()

Answer you will get is 3


No comments:

Post a Comment