Coding Now – Best AI & Full Stack Courses in Delhi NCR | 100% Placement
Limited Offer: Get 50% OFF on AI & Full Stack Courses
📞 Call Now: +91 9667708830
Back to SQL Notes
Topic #102

SQL Databases — RDBMS Explained

A SQL database (relational database) stores data in tables made of rows and columns, where relationships between tables are defined through keys. The engine that stores and manages this data is called an RDBMS — a Relational Database Management System.

Core Building Blocks

  • Database — a container for related tables (e.g. ecommerce_db)
  • Table — a structured set of rows and columns (e.g. customers)
  • Row (record) — one entry in a table (one customer)
  • Column (field) — one attribute of that entry (name, email, city)
  • Schema — the overall structure: tables, columns, data types, and relationships

Example

A students table:

student_idnamecourse
1PriyaData Science
2RohitFull Stack

This is one table inside a database. Real applications have dozens of tables — students, courses, payments, attendance — linked together through keys (covered in Primary Key and Foreign Key).

Popular RDBMS

DatabaseTypeCommon Use
MySQLOpen-sourceWeb apps, general-purpose — most widely taught
PostgreSQLOpen-sourceComplex queries, analytics, strong standards compliance
SQL ServerCommercial (Microsoft)Enterprise, .NET ecosystems
OracleCommercialLarge enterprise systems, banking, telecom
SQLiteEmbedded, file-basedMobile apps, small local storage, prototyping

The SQL you learn here is written primarily for MySQL (the most common starting point), with PostgreSQL and SQL Server differences called out wherever the syntax genuinely diverges.

Common Mistakes

  • Confusing "database" (the container) with "table" (the structure inside it) — a beginner mistake that causes real confusion when reading documentation
  • Assuming a "database" always means a full server — in tools like SQLite, a database is literally just a file

Interview Relevance

You may be asked to name differences between two RDBMS (commonly MySQL vs PostgreSQL). Focus on: licensing, JSON/array support (Postgres is stronger), replication, and typical use cases — rather than memorising version numbers.

Practice Question

List the database, table, and column names you'd expect in a simple food-delivery app storing restaurants, menu items, and orders.

Related SQL Notes

Want to go beyond the notes?

Join CodingNow's SQL course — live mentorship, real projects, and 100% placement support.

Enroll Now — Free Demo Available
💬 Talk to Advisor
1
WhatsApp

Latest from Our Blog

Insights on AI, Data Science, Full Stack & Career

View All Articles →