Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Mango database

Mango database

Scheduled Pinned Locked Moved Database
databasehelp
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Member 9992993
    wrote on last edited by
    #1

    Hello please i would ask you if you can help me there, thank you in advance

    if we have two dataset 1-First dataset contains population data of cities in the United States of America. Each record in the dataset has the following format:
    {
    "city": "ACMAR",
    "loc": [
    -86.51557,
    33.584132
    ],
    "pop": 6055,
    "state": "AL",
    "_id": "35004"
    }

    Second dataset contains log data from a geo-locational service. Each record in the dataset has the following format:
    {
    "_id": {
    "$oid": "5191f53b1b76a5666a8cbd64"
    },
    "status": 200,
    "requrest_time": 504, // in milliseconds
    "type": "stationboard",
    "datetime": {
    "$date": "2014-02-19T07:03:32.000Z"
    }
    }

    1-how we can Get all the states that have at least 2 cities with population > 1000000 (1M).and we need to Remember that city can be splitted into multiple records, and we should aggregate its population first. (zips dataset)

    2- we need Find a day (date) with the largest number of HTTP 500 errors (status=500).

    Richard Andrew x64R C 2 Replies Last reply
    0
    • M Member 9992993

      Hello please i would ask you if you can help me there, thank you in advance

      if we have two dataset 1-First dataset contains population data of cities in the United States of America. Each record in the dataset has the following format:
      {
      "city": "ACMAR",
      "loc": [
      -86.51557,
      33.584132
      ],
      "pop": 6055,
      "state": "AL",
      "_id": "35004"
      }

      Second dataset contains log data from a geo-locational service. Each record in the dataset has the following format:
      {
      "_id": {
      "$oid": "5191f53b1b76a5666a8cbd64"
      },
      "status": 200,
      "requrest_time": 504, // in milliseconds
      "type": "stationboard",
      "datetime": {
      "$date": "2014-02-19T07:03:32.000Z"
      }
      }

      1-how we can Get all the states that have at least 2 cities with population > 1000000 (1M).and we need to Remember that city can be splitted into multiple records, and we should aggregate its population first. (zips dataset)

      2- we need Find a day (date) with the largest number of HTTP 500 errors (status=500).

      Richard Andrew x64R Offline
      Richard Andrew x64R Offline
      Richard Andrew x64
      wrote on last edited by
      #2

      See: Mango DB[^]

      The difficult we do right away... ...the impossible takes slightly longer.

      M 1 Reply Last reply
      0
      • Richard Andrew x64R Richard Andrew x64

        See: Mango DB[^]

        The difficult we do right away... ...the impossible takes slightly longer.

        M Offline
        M Offline
        Member 9992993
        wrote on last edited by
        #3

        Thank you for your advice but i need a bit help with code , can u please?

        1 Reply Last reply
        0
        • M Member 9992993

          Hello please i would ask you if you can help me there, thank you in advance

          if we have two dataset 1-First dataset contains population data of cities in the United States of America. Each record in the dataset has the following format:
          {
          "city": "ACMAR",
          "loc": [
          -86.51557,
          33.584132
          ],
          "pop": 6055,
          "state": "AL",
          "_id": "35004"
          }

          Second dataset contains log data from a geo-locational service. Each record in the dataset has the following format:
          {
          "_id": {
          "$oid": "5191f53b1b76a5666a8cbd64"
          },
          "status": 200,
          "requrest_time": 504, // in milliseconds
          "type": "stationboard",
          "datetime": {
          "$date": "2014-02-19T07:03:32.000Z"
          }
          }

          1-how we can Get all the states that have at least 2 cities with population > 1000000 (1M).and we need to Remember that city can be splitted into multiple records, and we should aggregate its population first. (zips dataset)

          2- we need Find a day (date) with the largest number of HTTP 500 errors (status=500).

          C Offline
          C Offline
          Chris Quinn
          wrote on last edited by
          #4

          You can start by asking the question only once

          ========================================================= I'm an optoholic - my glass is always half full of vodka. =========================================================

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups