DEV Community

Ashok Kumar
Ashok Kumar

Posted on

SQL Database Concepts:

πŸ’‘ Sharing my key takeaways from today’s study session:


1️⃣ SQL vs NoSQL

SQL β†’ Structured data, fixed schema, relational tables.

NoSQL β†’ Unstructured/semi-structured data, flexible schema, handles big & dynamic data.

Use SQL when data is consistent & relational, NoSQL when data is large, scalable & diverse.


2️⃣ SQL vs MySQL

SQL β†’ Language (Structured Query Language) used to manage & query relational databases.

MySQL β†’ A Database Management System (RDBMS) that implements SQL.
πŸ‘‰ In short: SQL = Language | MySQL = Software using that language.


3️⃣ DBMS vs RDBMS

DBMS β†’ Database system (stores data, no strict relationships). Example: MS Access.

RDBMS β†’ DBMS + relationships between tables (uses keys, constraints). Example: MySQL, Oracle.
πŸ‘‰ RDBMS is an advanced form of DBMS.


4️⃣ Stored Procedures vs Functions

Stored Procedure β†’ Set of SQL statements stored in DB, can return multiple values, used for business logic.

Function β†’ Must return a single value, mainly used for computations.
πŸ‘‰ Procedure = multi-purpose, Function = calculation focused.


βœ… Excited to keep learning & sharing more database concepts.

SQL #NoSQL #DBMS #RDBMS

DataAnalytics #LearningJourney #Database

Top comments (0)