Analyzing Nobel Laureates data with MongoDB
In the first exercise, we will use MongoDB, one of the leading document-oriented databases, to analyze Nobel Laureates from 1902-present. MongoDB provides a simple and intuitive interface to work with JSON files. As discussed earlier, JSON is a flexible format that allows representing data using a structured approach.
JSON format
Consider the following table:
Firstname | Lastname | Information |
John | 15 | Subject: History, Grade B |
Jack | 18 | Subject: Physics, Grade A |
Jill | 17 | Subject: Physics, Grade A+ |
The Information field contains a column containing multiple values categorized under Subject and Grade. Such columns that contain multiple data are also known as columns with nested data.
Portability has been an important aspect of transferring data from one system to another. In general, ODBC connectors are used to transfer data between database systems. Another common format is CSV files with the data represented as comma-separated values. CSV files are optimal for structured...