0% found this document useful (0 votes)
6 views

SQL_vs_MongoDB_1734022785

Dbms

Uploaded by

Dipankar Ganguly
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
6 views

SQL_vs_MongoDB_1734022785

Dbms

Uploaded by

Dipankar Ganguly
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 10
MONGO DB SQL (Structured Query Language) is a standardized language used to communicate with relational databases. A relational database stores data in predefined schemas (tables) with rows and columns, similar to a spreadsheet. SQL databases are built on the ACID properties (Atomicity, Consistency, Isolation, Durability), which ensures reliable transactions and foro] a is I1N=1Ne\ _ StudentCourses Studentid Courseld 1 al Courses Name SQL Server ASP.NET MVC MongoDB Java PHP SQL Syntax: Here is an example of SQL query to retrieve data from a table: SELECT Name, Age FROM Users WHERE Age > 18 ORDER BY Name : Relational databases are a good fit for managing , i , and . SQL Ciel aory integrity and An could use to Elale| order statuses across multiple it F FE Common SQL Database Management Systems: a MySQL e ~=PostgreSQL O SQL Server * Oracle Database MySQL. PostgreSQL isa ( ) that dataina i format using BSON ( ). Instead of allows you to documents with schemas, meaning each document have fields and Person MongoDB Document Example: Json i “name': "John Doe", “age”: 25, “email’: [email protected]’, “addresses: [ { street’: 123 Main St’, ‘city’: "New York’, “state”: "NY" }, { "street’: "456 Oak St’, 'city’: "San Francisco’, "state", "CA" } ] i MongoDB Query Example: db.users.find({ age: { $gt: 18 } }).sort({ name: 1 }); Use Cases of MongoDB: Real-Time Analytics: MongoDB is well-suited for applications requiring rapid insertion and retrieval of large volumes of [Tati dae (aol gfe Rel-1 eB Example: A real-time analytics platform could use MongoDB to store and analyze data streams from loT devices. od ar Poe rer Pa Cee Se Creager eee Teter td ru) le POEUN ra} Scene Cota Predefined schema (strict) Supports complex relationships oe aero) See reas tats One ta Structured Query Language (squ Reet uc) ery partitioning or clustering) Pee eee oe) where data integrity and Coreen ier ean coca) ee a eee Cee ed eter aca CMe Reto Co Non-relational (NoSQL) eee oe en Ecc) esta eee eae) Pe eer SE eae eed Cores) re ere cee! MongoDB 4.0, but often not ce Een a Ce eng eis Cer kr age to) Horizontal scaling through sharding, Geog nacre mcs Cee pete Cee Cece Pee eee en) eee Panne Cen ee eer) rer MongoDB, Couchbase If you helpful, please like and share it with your friends Save this post for later

You might also like