liveBook · Manning

Relational database management system

As explained in Learn SQL in a Month of Lunches

A relational database management system is software that stores, organizes, and manages structured data represented in related tables.

A relational database management system (RDBMS) stores structured information in tables. Tables group related data into rows and columns, while relationships let you retrieve connected information from several tables with one SQL query. section 8.0 section 16.1

Think of tables as organized spreadsheets whose rows contain records and whose columns describe each record. The relational part means that separate tables can be connected through shared values, such as an identifier. section 8.0 section 16.1

Finding promotions without orders

Suppose promotion stores available promotions and orderheader stores orders. A left join can keep every promotion, then the WHERE condition can select promotions with no matching order: SELECT p.PromotionCode, oh.OrderID FROM promotion p LEFT JOIN orderheader oh ON p.PromotionID = oh.PromotionID WHERE oh.PromotionID IS NULL; The result identifies promotions that have not been used. section 9.2.4

SELECT
    p.PromotionCode,
 oh.OrderID
FROM promotion p
LEFT JOIN orderheader oh
    ON p.PromotionID = oh.PromotionID
WHERE oh.PromotionID IS NULL;

View the compact SQL version of the left-join example, which demonstrates how an RDBMS combines related tables and filters unmatched records. section 9.2.4

Working with an RDBMS commonly involves:

  • Querying tables with SELECT, FROM, WHERE, and GROUP BY. section 14.1.1
  • Creating and manipulating tables, where storage choices affect the database design. section 18.0
  • Inserting new rows with values appropriate to each column and data type. section 16.1
  • Checking SQL logic carefully, especially when combining AND and OR conditions with parentheses. section 5.2.3

How Learn SQL in a Month of Lunches covers it

How deep it goes
Explains tables, relationships, joins, storage, and basic data operations without descending into implementation internals.
Examples
Demonstrates left joins, unmatched promotions, filtered queries, table inserts, and practice with sample order and sales data.
What it assumes
Assumes basic familiarity with SQL queries while reinforcing rows, columns, values, primary keys, and data types.
What you can do after
Apply SQL to query related tables, manipulate table data, and adapt syntax for different RDBMS products.
How it connects
Connects tables, rows, columns, values, data types, SQL queries, joins, primary keys, and relational database design.

Also explained in

Compare how 6 books explain relational database management system →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Learn SQL in a Month of Lunches. The section links point to the parts of the book it draws on.