Urgenthomework logo
UrgentHomeWork
Live chat

Loading..

ICT704 Non-Relational Database Systems - Free Samples to Students

  17 Download     📄   5 Pages / 1108 Words

Part A - Database
Create a MongoDB database using the data provided to you in the 
MovieData_Task2.xls spreadsheet. (There should only be one collection movies
with each movie as a single document). 
 Insert data from the provided .xlsx file into MongoDB using the insert command
 Create indexes which you think will be needed and beneficial
 Create the following queries (all output should be displayed in a formatted way): o List all the movies in the collection
 List the movies that are from Japan
 List just the directors name(s) for every movie
 List the distinct names of every director
 Count the number of movies in the list
 Return only the movies that have won at least one Oscar
 List the movies that were released before 1980
 Return the title and average rating of each movie
 Return the title of movies that have had no ratings or comments
Update the title of movie 6 to “E.T.” Add a new field called notes to the following movies: o 12 Terminator and Terminator 2 are rated together
18 The trilogy consists of the three movies

Answer:

Part A: Query

Index 1: 

db.getCollection('Movie').createIndex( { MovieID: 1 } );

Index 2: 

db.getCollection('Movie').createIndex( { MovieID: 1 }, { collation: { Country: "Japan" } } );

Index 3:

db.getCollection('Movie').createIndex( { MovieName: 1 }, { collation: { Country: "Japan" } } );

Query 1: 

db.getCollection('Movie').find({}, {MovieID: '1', '_id':0})


Query 2: 

db.getCollection('Movie').find({Country: 'Japan'})

Query 3: 

db.getCollection('Movie').find({}, {MovieName: 1, Director: 1, '_id':0})

Query 4: 

db.getCollection('Movie').find({}, {MovieName: '2001', Director: 'Japan', '_id':0})

Query 5: 

db.getCollection('Movie').distinct("Director")

Query 6: 

db.getCollection('Movie').count({}, {MovieID: 1, '_id':0})

Query 7: 

db.Movie.find({OscarsWon: { $exists: false }})

Query 8: 

db.getCollection('Movie').find({ReleaseDate: {$lte: '1968'}})

Query 9: 

db.Movie.aggregate([{$lookup:{from:"Movie", localField: "MovieID", foreignField: "MovieID", as: "MovieRating"}}, {$replaceRoot: { newRoot: { $mergeObjects: [ { $arrayElemAt: [ "$MovieRating", 0 ] }, "$$ROOT" ] } } }, {$group: {_id: {Movie: "$MovieID", MovieName: "$MovieName"}, averageRating: {$avg: "$Rating"}}}]);

Query 10:  

db.Movie.aggregate([{ $lookup:{from:"Rating", localField: "MovieID", foreignField: "MovieID", as: "MovieRating"}}, {$replaceRoot: { newRoot: { $mergeObjects: [ { $arrayElemAt: [ "$MovieRating ", 0 ] }, "$$ROOT" ] } } }, {$project : {"MovieName": 1, MovieRating: {"Rating": 1, "Comments": 1}}}]);

Query 11: 

db.Movie.update(

   { MovieName: "ET" },

   {

MovieID: "6",

MovieName: "E.T.",

Director: "Steven Spielberg",

ReleaseDate: "1982",

OscarsWon: "4",

Country: "USA"

 },

   { upsert: true }

)

Query 12: db.getCollection

('Movie').update

({MovieID: "12"},

{$set:{ notes: "Terminator and Terminator 2 are rated together"}})

db.getCollection

('Movie').update

({MovieID: "18"},

{$set:{ notes: "The trilogy consists of the three movies "}})

Bibliography:

Abbes, H. and Gargouri, F., 2016, December. M2Onto: an approach and a tool to learn OWL ontology from MongoDB database. In International Conference on Intelligent Systems Design and Applications (pp. 612-621). Springer, Cham.

Abbes, H. and Gargouri, F., 2016. Big data integration: A MongoDB database and modular ontologies based approach. Procedia Computer Science, 96, pp.446-455.

Abbes, H., Boukettaya, S. and Gargouri, F., 2015, November. Learning ontology from big data through MongoDB database. In Computer Systems and Applications (AICCSA), 2015 IEEE/ACS 12th International Conference of (pp. 1-7). IEEE.

Aboutorabi, S.H., Rezapour, M., Moradi, M. and Ghadiri, N., 2015, August. Performance evaluation of SQL and MongoDB databases for big e-commerce data. In Computer Science and Software Engineering (CSSE), 2015 International Symposium on (pp. 1-7). IEEE.

Chauhan, D. and Bansal, K.L., 2017. Using the Advantages of NoSQL: A case study on MongoDB. International Journal on Recent and Innovation Trends in Computing and Communication, 5(2), pp.90-93.

Dupont, C., Wussah, A., Malo, S., Thiare, O., Niass, F., Pham, C., Dupont, S., Le Gall, F. and Cousin, P., 2018, May. Low-Cost IoT Solutions for Fish Farmers in Africa. In 2018 IST-Africa Week Conference (IST-Africa) (pp. Page-1). IEEE.

Ferney, M.M.J., Estefan, L.B.N. and Alexander, V.V.J., 2017, October. Assessing data quality in open data: A case study. In de Innovacion y Tendencias en Ingenieria (CONIITI), 2017 Congreso Internacional (pp. 1-5). IEEE.

Gousios, G., Vasilescu, B., Serebrenik, A. and Zaidman, A., 2014, May. Lean GHTorrent: GitHub data on demand. In Proceedings of the 11th working conference on mining software repositories (pp. 384-387). ACM.

Guimaraes, V., Hondo, F., Almeida, R., Vera, H., Holanda, M., Araujo, A., Walter, M.E. and Lifschitz, S., 2015, November. A study of genomic data provenance in NoSQL document-oriented database systems. In Bioinformatics and Biomedicine (BIBM), 2015 IEEE International Conference on (pp. 1525-1531). IEEE.

Gyorodi, C., Gyorodi, R., Pecherle, G. and Olah, A., 2015, June. A comparative study: MongoDB vs. MySQL. In Engineering of Modern Electric Systems (EMES), 2015 13th International Conference on (pp. 1-6). IEEE.

Inel, O., Khamkham, K., Cristea, T., Dumitrache, A., Rutjes, A., van der Ploeg, J., Romaszko, L., Aroyo, L. and Sips, R.J., 2014, October. Crowdtruth: Machine-human computation framework for harnessing disagreement in gathering annotated data. In International Semantic Web Conference (pp. 486-504). Springer, Cham.

Kanoje, S., Powar, V. and Mukhopadhyay, D., 2015, March. Using MongoDB for social networking website deciphering the pros and cons. In Innovations in Information, Embedded and Communication Systems (ICIIECS), 2015 International Conference on (pp. 1-3). IEEE.

Kumar, L., Rajawat, S. and Joshi, K., 2015. Comparative analysis of nosql (mongodb) with mysql database. International Journal of Modern Trends in Engineering and Research, 2(5), pp.120-127.

Le, M.K., Chang, H.T., Chang, Y.M., Hu, Y.H. and Chen, H.T., 2016, December. An efficient multilevel healthy cloud system using Spark for smart clothes. In Computer Symposium (ICS), 2016 International (pp. 182-186). IEEE.

Michel, F., Faron-Zucker, C. and Montagnat, J., 2016, September. A mapping-based method to query MongoDB documents with SPARQL. In International Conference on Database and Expert Systems Applications (pp. 52-67). Springer, Cham.

Michel, F., Zucker, C.F. and Montagnat, J., 2016. Mapping-based SPARQL access to a MongoDB database (Doctoral dissertation, CNRS).

Mohamed, H.H.H., 2015. A new auditing mechanism for open source NoSQL database a case study on open source MongoDB database (Doctoral dissertation, Universiti Utara Malaysia).

Shukla, K. and Khare, P., 2018. A SIMPLIFIED WAY OF DATABASE MIGRATION FROM RELATIONAL DATABASE MYSQL TO NOSQL DATABASE MONGODB.

Simanjuntak, H.T., Simanjuntak, L., Situmorang, G. and Saragih, A., 2015. Query Response Time Comparison NOSQLDB MONGODB with SQLDB Oracle. JUTI: Jurnal Ilmiah Teknologi Informasi, 13(1), pp.95-105.

Stanescu, L., Brezovan, M. and Burdescu, D.D., 2016, September. Automatic mapping of MySQL databases to NoSQL MongoDB. In Computer Science and Information Systems (FedCSIS), 2016 Federated Conference on (pp. 837-840). IEEE.

Wu, C.M., Huang, Y.F. and Lee, J., 2015. Comparisons between mongodb and ms-sql databases on the twc website. American Journal of Software Engineering and Applications, 4(2), pp.35-41.


Buy ICT704 Non-Relational Database Systems - Free Samples to Students Answers Online

Talk to our expert to get the help with ICT704 Non-Relational Database Systems - Free Samples to Students Answers to complete your assessment on time and boost your grades now

The main aim/motive of the management assignment help services is to get connect with a greater number of students, and effectively help, and support them in getting completing their assignments the students also get find this a wonderful opportunity where they could effectively learn more about their topics, as the experts also have the best team members with them in which all the members effectively support each other to get complete their diploma assignments. They complete the assessments of the students in an appropriate manner and deliver them back to the students before the due date of the assignment so that the students could timely submit this, and can score higher marks. The experts of the assignment help services at urgenthomework.com are so much skilled, capable, talented, and experienced in their field of programming homework help writing assignments, so, for this, they can effectively write the best economics assignment help services.

Get Online Support for ICT704 Non-Relational Database Systems - Free Samples to Students Assignment Help Online

Resources

    • 24 x 7 Availability.
    • Trained and Certified Experts.
    • Deadline Guaranteed.
    • Plagiarism Free.
    • Privacy Guaranteed.
    • Free download.
    • Online help for all project.
    • Homework Help Services

Copyright © 2009-2023 UrgentHomework.com, All right reserved.