{"id":20807233,"url":"https://github.com/dev-sathya17/-day35-guvi","last_synced_at":"2026-02-09T21:36:13.827Z","repository":{"id":244417130,"uuid":"815093516","full_name":"dev-sathya17/-Day35-GUVI","owner":"dev-sathya17","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-14T14:36:09.000Z","size":1484,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-30T05:37:17.003Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dev-sathya17.png","metadata":{"files":{"readme":"Readme.MD","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-14T10:38:59.000Z","updated_at":"2024-06-14T14:36:12.000Z","dependencies_parsed_at":"2024-06-14T16:05:59.212Z","dependency_job_id":"915c974e-10e1-4fc6-8154-851de9a1d5de","html_url":"https://github.com/dev-sathya17/-Day35-GUVI","commit_stats":null,"previous_names":["dev-sathya17/-day35-guvi"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dev-sathya17/-Day35-GUVI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-sathya17%2F-Day35-GUVI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-sathya17%2F-Day35-GUVI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-sathya17%2F-Day35-GUVI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-sathya17%2F-Day35-GUVI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dev-sathya17","download_url":"https://codeload.github.com/dev-sathya17/-Day35-GUVI/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-sathya17%2F-Day35-GUVI/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29281972,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-09T19:05:41.198Z","status":"ssl_error","status_checked_at":"2026-02-09T19:05:37.449Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-17T19:34:12.523Z","updated_at":"2026-02-09T21:36:13.805Z","avatar_url":"https://github.com/dev-sathya17.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# GUVI - DAY 35\n\n## MongoDB Day 1 Exercises\n\n1. About MongoDB.\n\n   \u003e - MongoDB is a No-SQL database.\n   \u003e - It is a document oriented database that utilizes JSON like documents.\n   \u003e - Unlike MySQL, where data is split as tables, here data is classified into collections and documents.\n   \u003e - To infer directly from MySQL, we can say that _Collections_ are equivalent to _MySQL Tables_ and Documents are equivalent to _MySQL Rows_.\n   \u003e - Unlike MySQL, MongoDB documents are unstructured, which makes it more scalable.\n\n2. About the Task.\n\n   \u003e - In this task, we are given a data file URL.\n   \u003e - The data from that URL is downloaded and uploaded to our mongodb database. [Source](./product.json)\n   \u003e - This data is to be queried as per the given 10 questions and their solutions are to be attached.\n   \u003e - The complete solution is compiled into a single document. [Source](./Document.pdf)\n\n3. Setup\n\n   \u003e - First, we download the data from the task document specified URL.\n   \u003e - we create a database, using the MongoDB Compass UI.\n   \u003e - We create a database named `zenTask35` and a collection named `products`.\n   \u003e - We click on `add data` option, and upload our `product.json` file.\n   \u003e - On refreshing the collection, the data get populated.\n\n4. Solution\n\n   \u003e - In this section, the query solutions for our given 10 questions are discussed. The solution snippets, with the data output are attached in the solution document. [Document URL](./Document.pdf)\n\n   1. Find all the information about each products.\n\n      ```\n      db.products.find()\n      ```\n\n   2. Find the product price which are between 400 to 800.\n\n      ```\n      db.products.find({product_price:{$gte:400,$lte:800}})\n      ```\n\n   3. Find the product price which are not between 400 to 600.\n\n      ```\n      db.products.find({product_price:{$not:{$gte:400, $lte:600}}})\n      ```\n\n   4. List the four product which are greater than 500 in price.\n\n      ```\n      db.products.find({product_price:{$gt:500}},{}).limit(4)\n      ```\n\n   5. Find the product name and product material of each products.\n\n      ```\n      db.products.find({},{product_name:1, product_material:1})\n      ```\n\n   6. Find the product with a row id of 10.\n\n      ```\n      db.products.find({id:\"10\"},{})\n      ```\n\n   7. Find only the product name and product material.\n\n      ```\n      db.products.find({},{product_name:1, product_material:1})\n      ```\n\n   8. Find all products which contain the value of soft in product material.\n\n      ```\n      db.products.find({product_material:\"Soft\"})\n      ```\n\n   9. Find products which contain product color indigo and product price 492.00.\n\n      ```\n      db.products.find({product_color:\"indigo\",product_price:492.00})\n      ```\n\n   10. Delete the products which product price value are 28.\n\n       ```\n       db.products.deleteOne({product_price:28})\n       ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev-sathya17%2F-day35-guvi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdev-sathya17%2F-day35-guvi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev-sathya17%2F-day35-guvi/lists"}