Download free for 30 days
Sign in
Upload
Language (EN)
Support
Business
Mobile
Social Media
Marketing
Technology
Art & Photos
Career
Design
Education
Presentations & Public Speaking
Government & Nonprofit
Healthcare
Internet
Law
Leadership & Management
Automotive
Engineering
Software
Recruiting & HR
Retail
Sales
Services
Science
Small Business & Entrepreneurship
Food
Environment
Economy & Finance
Data & Analytics
Investor Relations
Sports
Spiritual
News & Politics
Travel
Self Improvement
Real Estate
Entertainment & Humor
Health & Medicine
Devices & Hardware
Lifestyle
Change Language
Language
English
Español
Português
Français
Deutsche
Cancel
Save
EN
BL
Uploaded by
bhavesh lande
317 views
aggregation and indexing with suitable example using MongoDB.
Implement aggregation and indexing with suitable example using MongoDB.
Engineering
◦
Read more
0
Save
Share
Embed
Embed presentation
Download
Download to read offline
1
/ 3
2
/ 3
Most read
3
/ 3
Most read
More Related Content
PDF
database application using SQL DML statements: Insert, Select, Update, Delet...
by
bhavesh lande
PDF
Design and Develop SQL DDL statements which demonstrate the use of SQL objec...
by
bhavesh lande
PDF
database application using SQL DML statements: all types of Join, Sub-Query ...
by
bhavesh lande
PPT
Common Network Services
by
ŐŔaṉģ Zaib
PPTX
SQL
by
Shyam Khant
PDF
SYSTEM NETWORK ADMINISTRATIONS GOALS and TIPS
by
Prof Ansari
PPTX
Socket programming
by
Ujjwal Kumar
PDF
4.4.1.3 packet tracer configuring a zone-based policy firewall (zpf) instru...
by
Salem Trabelsi
database application using SQL DML statements: Insert, Select, Update, Delet...
by
bhavesh lande
Design and Develop SQL DDL statements which demonstrate the use of SQL objec...
by
bhavesh lande
database application using SQL DML statements: all types of Join, Sub-Query ...
by
bhavesh lande
Common Network Services
by
ŐŔaṉģ Zaib
SQL
by
Shyam Khant
SYSTEM NETWORK ADMINISTRATIONS GOALS and TIPS
by
Prof Ansari
Socket programming
by
Ujjwal Kumar
4.4.1.3 packet tracer configuring a zone-based policy firewall (zpf) instru...
by
Salem Trabelsi
What's hot
PPT
6. Integrity and Security in DBMS
by
koolkampus
PPTX
Buffer overflow
by
قصي نسور
PDF
Dc ch10 : circuit switching and packet switching
by
Syaiful Ahdan
PPTX
Unicasting , Broadcasting And Multicasting New
by
techbed
PPTX
Network types & its topology
by
DEVI NATARAJAN
PPT
Cisco Icons
by
Md. Mujahiduzzaman
PDF
Directory services
by
Christalin Nelson
PPTX
Wireshark Basic Presentation
by
MD. SHORIFUL ISLAM
PPTX
Firewall
by
Saurabh Chauhan
PDF
Share File easily between computers using sftp
by
Tushar B Kute
PDF
Implementation of Spanning Tree Protocol using ns-3
by
Naishil Shah
PPT
SQL Views
by
baabtra.com - No. 1 supplier of quality freshers
PDF
Full Text Search in PostgreSQL
by
Aleksander Alekseev
PPTX
Delivery and Forwarding of IP Packets
by
International Institute of Information Technology (I²IT)
PDF
How to Use JSON in MySQL Wrong
by
Karwin Software Solutions LLC
PPTX
Sparse matrix and its representation data structure
by
Vardhil Patel
PPTX
Routers.ppt
by
kirbadh
PDF
Java Linked List Tutorial | Edureka
by
Edureka!
PPTX
WDS
by
MohamedJafar5
PPTX
Group By, Order By, and Aliases in SQL
by
MSB Academy
6. Integrity and Security in DBMS
by
koolkampus
Buffer overflow
by
قصي نسور
Dc ch10 : circuit switching and packet switching
by
Syaiful Ahdan
Unicasting , Broadcasting And Multicasting New
by
techbed
Network types & its topology
by
DEVI NATARAJAN
Cisco Icons
by
Md. Mujahiduzzaman
Directory services
by
Christalin Nelson
Wireshark Basic Presentation
by
MD. SHORIFUL ISLAM
Firewall
by
Saurabh Chauhan
Share File easily between computers using sftp
by
Tushar B Kute
Implementation of Spanning Tree Protocol using ns-3
by
Naishil Shah
SQL Views
by
baabtra.com - No. 1 supplier of quality freshers
Full Text Search in PostgreSQL
by
Aleksander Alekseev
Delivery and Forwarding of IP Packets
by
International Institute of Information Technology (I²IT)
How to Use JSON in MySQL Wrong
by
Karwin Software Solutions LLC
Sparse matrix and its representation data structure
by
Vardhil Patel
Routers.ppt
by
kirbadh
Java Linked List Tutorial | Edureka
by
Edureka!
WDS
by
MohamedJafar5
Group By, Order By, and Aliases in SQL
by
MSB Academy
More from bhavesh lande
PDF
The Annual G20 Scorecard – Research Performance 2019
by
bhavesh lande
PDF
information control and Security system
by
bhavesh lande
PDF
information technology and infrastructures choices
by
bhavesh lande
PDF
ethical issues,social issues
by
bhavesh lande
PDF
managing inforamation system
by
bhavesh lande
PDF
• E-commerce, e-business ,e-governance
by
bhavesh lande
PDF
IT and innovations
by
bhavesh lande
PDF
organisations and information systems
by
bhavesh lande
PDF
IT stratergy and digital goods
by
bhavesh lande
PDF
Implement Mapreduce with suitable example using MongoDB.
by
bhavesh lande
PDF
Unnamed PL/SQL code block: Use of Control structure and Exception handling i...
by
bhavesh lande
PDF
working with python
by
bhavesh lande
PDF
applications and advantages of python
by
bhavesh lande
PDF
introduction of python in data science
by
bhavesh lande
PDF
tools
by
bhavesh lande
PDF
data scientists and their role
by
bhavesh lande
PDF
applications
by
bhavesh lande
PDF
statistics techniques to deal with data
by
bhavesh lande
PPTX
introduction to data science
by
bhavesh lande
The Annual G20 Scorecard – Research Performance 2019
by
bhavesh lande
information control and Security system
by
bhavesh lande
information technology and infrastructures choices
by
bhavesh lande
ethical issues,social issues
by
bhavesh lande
managing inforamation system
by
bhavesh lande
• E-commerce, e-business ,e-governance
by
bhavesh lande
IT and innovations
by
bhavesh lande
organisations and information systems
by
bhavesh lande
IT stratergy and digital goods
by
bhavesh lande
Implement Mapreduce with suitable example using MongoDB.
by
bhavesh lande
Unnamed PL/SQL code block: Use of Control structure and Exception handling i...
by
bhavesh lande
working with python
by
bhavesh lande
applications and advantages of python
by
bhavesh lande
introduction of python in data science
by
bhavesh lande
tools
by
bhavesh lande
data scientists and their role
by
bhavesh lande
applications
by
bhavesh lande
statistics techniques to deal with data
by
bhavesh lande
introduction to data science
by
bhavesh lande
aggregation and indexing with suitable example using MongoDB.
1.
Practical No:11 Problem Statement:
Implement aggregation and indexing with suitable example using MongoDB. *Index* > use prac11 switched to db prac11 > db.stud.insert({_id:1,rollno:28,name:"Shail",dept:10}); > db.stud.insert({_id:2,rollno:26,name:"Shivesh",dept:10}); > db.stud.find(); { "_id" : 1, "rollno" : 28, "name" : "Shail", "dept" : 10 } { "_id" : 2, "rollno" : 26, "name" : "Shivesh", "dept" : 10 } > db.stud.insert({_id:3,rollno:22,name:"Alquama",dept:11}); > db.stud.insert({_id:4,rollno:33,name:"Swapnil",dept:11}); > > db.stud.find().pretty(); { "_id" : 1, "rollno" : 28, "name" : "Shail", "dept" : 10 } { "_id" : 2, "rollno" : 26, "name" : "Shivesh", "dept" : 10 } { "_id" : 3, "rollno" : 22, "name" : "Alquama", "dept" : 11 } { "_id" : 4, "rollno" : 33, "name" : "Swapnil", "dept" : 11 } db.stud.getIndexes(); [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "prac11.stud", "name" : "_id_" } ] db.stud.ensureIndex({name:1}); > db.stud.getIndexes(); [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "prac11.stud", "name" : "_id_" }, { "v" : 1, "key" : { "name" : 1 }, "ns" : "prac11.stud", "name" : "name_1" } db.stud.getIndexes(); [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "prac11.stud", "name" : "_id_" }, {
2.
"v" : 1, "key"
: { "name" : 1 }, "ns" : "prac11.stud", "name" : "name_1" }, { "v" : 1, "key" : { "rollno" : 1 }, "unique" : true, "ns" : "prac11.stud", "name" : "rollno_1" } db.system.indexes.find(); { "v" : 1, "key" : { "_id" : 1 }, "ns" : "prac11.stud", "name" : "_id_" } { "v" : 1, "key" : { "name" : 1 }, "ns" : "prac11.stud", "name" : "name_1" } { "v" : 1, "key" : { "rollno" : 1 }, "unique" : true, "ns" : "prac11.stud", "name" : "rollno_1" } { "v" : 1, "key" : { "_id" : 1 }, "ns" : "prac11.item", "name" : "_id_" } -------------------------------------------------------------------------------- ------------------------ *Aggergation* db.item.insert({Customer:'a',Name:"Mouse",Quantity:3,Price:200}); db.item.insert({Customer:'a',Name:"Keyboard",Quantity:5,Price:800}); > db.item.insert({Customer:'b',Name:"Mouse",Quantity:3,Price:500}); > db.item.insert({Customer:'a',Name:"Keyboard",Quantity:4,Price:2000}); > db.item.find().pretty(); { "_id" : ObjectId("5d8f128237dc2e143b51bde5"), "Customer" : "a", "Name" : "Mouse", "Quantity" : 3, "Price" : 200 } { "_id" : ObjectId("5d8f12a637dc2e143b51bde6"), "Customer" : "a", "Name" : "Keyboard", "Quantity" : 5, "Price" : 800 } { "_id" : ObjectId("5d8f12be37dc2e143b51bde7"), "Customer" : "b", "Name" : "Mouse", "Quantity" : 3, "Price" : 500 } { "_id" : ObjectId("5d8f12da37dc2e143b51bde8"), "Customer" : "a", "Name" : "Keyboard", "Quantity" : 4, "Price" : 2000 } > db.item.aggregate([{$group:{_id:"Name",total:{$sum:1}}}]); { "result" : [ { "_id" : "Name", "total" : 4 } ], "ok" : 1 }
Download