0% found this document useful (0 votes)
36 views12 pages

MongoDB School Database Presentation (Original)

Uploaded by

Abdulsamad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views12 pages

MongoDB School Database Presentation (Original)

Uploaded by

Abdulsamad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 12

School Database

System
Project

A MONGODB DATABASE SYSTEM

PRESENTED BY ABDULSAMAD AJAYI


DATE: 29TH OF NOVEMBER 2024

NII
Introduction
 Overview:
 The project aims to simulate the management of students,
teachers, and courses in an academic institution using
MongoDB.
 This also involves creating a robust school database using
MongoDB. It stores and manages data for students, teachers,
and courses, showcasing the power of NoSQL databases.

 Objectives:
 - Design a scalable database system to manage students,
teachers, and courses.
 - Implement relationships using MongoDB's ObjectId
references.

 Scope:
 - Focuses on three main collections: Students, Teachers, and
Database Design
 Schema Overview:
Students, Teachers, and Courses collections.

 The database consists of three main collections:


1. Students: Stores student details.
2. Teachers: Stores teacher details.
3. Courses: Stores course information.
 Relationships are established using ObjectIDs.

 Relationships:
 Many-to-Many: Students and Courses.
 One-to-Many: Teachers and Courses.
Relationships

 Students and Courses:


 Students can enroll in multiple courses, and
courses can have multiple students enrolled.

 Teachers and Courses:


 Teachers can teach multiple courses, and each
course is taught by one teacher.
Implementation

 Tools and Technologies:


 MongoDB: NoSQL database for data storage.
 Node.js: JavaScript runtime for server-side
scripting.
 Visual Studio Code: IDE(Integrated
Development Emvironment) for project
development.
 Steps for Database Setup:
 Import JSON data into MongoDB Compass.
How to Use the Database

 1. Open MongoDB Compass or Mongo Shell.


 2. Import the provided JSON data into the
respective collections.
 3. Perform CRUD operations using MongoDB
commands.
 4. Query data using find(), update(), and
aggregate() functions.
Key Features

 ObjectId References: Ensures data integrity


across collections.
 Data Integrity: Relationships maintained
through ObjectId references.
 Scalability: MongoDB's flexible schema makes
scaling easy.
 Flexibility: Easy to add new entities or
relationships in the future.
Data Model Example
1. Students:
 {"_id": { "$oid": "60c72b2f4f1a4e3d88f7e5f1" },
 "name": "Alice Johnson",
 "age": 15,
 "sex": "Male",
 "class": "10th Grade",
 "courses": [{ "$oid":
"60c72c4e4f1a4e3d88f7e702" }, { "$oid":
"60c72c4e4f1a4e3d88f7e704" }],
 "email": "alicejohnson@gmail.com",
 "address": "No 23, Aco Estate, Main-de
Street, Abuja.",
 "phone": "08151234091",
 "gpa": 3.5,
 "guardianName": "Emma Johnson",
Data Model Example
2. Courses 3. Teachers
{ { "_id": { "$oid": "60c72b3f4f1a4e3d88f7e701" },
"_id": { "$oid": "60c72c4e4f1a4e3d88f7e700"},

 "name": "Introduction to Biology",


 "title": "Mr.",

 "description": "An overview of basic biological


 "name": "William Carter",
principles.",  "age": 40,
 "credits": 3,  "gender": "Male",
 "department": "Science",  "subject": "Mathematics",
 "teacherId": [  "courses": [ { "$oid": "60c72c4e4f1a4e3d88f7e701" },

 { "$oid": "60c72b3f4f1a4e3d88f7e702" },  { "$oid": "60c72c4e4f1a4e3d88f7e718" } ],

 { "$oid": "60c72b3f4f1a4e3d88f7e707" } ],  "email": "williamcarter@gmail.com",

 "semester": "2nd Semester 2024",


 "address": "No 12, Gwarinpa Estate, 3rd Avenue,
Abuja.",
 "studentsEnrolled": [
 "phone": "09154010923",
 { "$oid": "60c72b2f4f1a4e3d88f7e5f2" },  "yearsOfExperience": 15,
 { "$oid": "60c72b2f4f1a4e3d88f7e604" }  "salary": 55000,
 ]}  "hiredDate": "2023-06-21"}
ER Diagram Relationship
Conclusion

 Summary:
 The MongoDB School Database System
effectively manages student, teacher,
and course data with references
ensuring data integrity.
 The MongoDB School Database Project
demonstrates the effectiveness of NoSQL
databases in managing complex
relationships and large datasets
efficiently. It highlights MongoDB’s
flexibility and ease of use.
NIIT

THANKS FOR
LISTENING

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy