Question: Consider the following conceptual schema of a sample database that contains information about the sport teams, the games played by the teams, and the players

Consider the following conceptual schema of a sample database that contains information about the sport teams, the games played by the teams, and the players who belong to the teams PLAYER Home-team GAME TEAM first-name ID last-name ID position number ADI PLays-to rA |name .game-number ID enue 1 city home-g round Away-team referee score-home-team score-away-team Implement the BSON documents that contain information about two teams, two players per team and two games played by the teams. Information included in the BSON documents must be consistent with a conceptual schema given above. BSON documents must contain information about the names of classes, the names of associations and the identifiers of classes. See presentation slides for an extended format of sample BSON documents. Whenever it is possible, the documents must be created as the hierarchical structures Next, create a MongoDB script solution2.js and include into the script the statements that insert the BSON documents created earlier into a collection. A name of MongoDB database used and a name of a collection with your documents is up to you. Next, insert into the script a statement that displays the BSON documents in a pretty format. Consider the following conceptual schema of a sample database that contains information about the sport teams, the games played by the teams, and the players who belong to the teams PLAYER Home-team GAME TEAM first-name ID last-name ID position number ADI PLays-to rA |name .game-number ID enue 1 city home-g round Away-team referee score-home-team score-away-team Implement the BSON documents that contain information about two teams, two players per team and two games played by the teams. Information included in the BSON documents must be consistent with a conceptual schema given above. BSON documents must contain information about the names of classes, the names of associations and the identifiers of classes. See presentation slides for an extended format of sample BSON documents. Whenever it is possible, the documents must be created as the hierarchical structures Next, create a MongoDB script solution2.js and include into the script the statements that insert the BSON documents created earlier into a collection. A name of MongoDB database used and a name of a collection with your documents is up to you. Next, insert into the script a statement that displays the BSON documents in a pretty format
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
