A DBMS is software that stores data and gives you controlled ways to read and change it. An RDBMS is a DBMS with one extra rule: the data lives in tables of rows and columns, and the relationships between tables are declared and enforced.
The difference is not the interface. Both kinds offer a query processor, a storage engine and a transaction manager. The difference is the shape of the data and the rules the engine refuses to break.
In an RDBMS you declare a schema first. Every row in a table has the same columns, with a declared type for each. The engine then holds you to constraints such as primary key, foreign key, unique and not null.
Those constraints are the real value. A foreign key stops an order row from pointing at a customer that does not exist. A not null rule stops a row from going in half filled. The database protects the data, not only the application code on top of it.
A DBMS without that relational model is usually called a NoSQL store. The common kinds are document, key value, column family and graph stores. Each keeps a looser shape, such as one JSON document per record, and each accepts more variety in exchange for less built in checking.
Why does the distinction matter when you choose a system? Three reasons. Schema and constraints decide how much the database checks for you. Transactions decide whether multi step work can be all or nothing. Joins decide whether you can ask one question across related tables without writing the glue yourself.
With SQL you model the relationship as a foreign key, and the engine refuses any write that breaks it. That is the difference you can see in a handful of lines.
Here is a student table and an enrollment table that points at it. The REFERENCES clause names the parent table and the parent column. The engine checks every insert and every update against that link.
PRAGMA foreign_keys = ON;
CREATE TABLE students (
id INTEGER PRIMARY KEY,
name TEXT NOT NULL UNIQUE
);
CREATE TABLE enrollments (
id INTEGER PRIMARY KEY,
student_id INTEGER NOT NULL REFERENCES students(id),
course_code TEXT NOT NULL
);
INSERT INTO students (id, name) VALUES (1, 'Asha'), (2, 'Ravi'), (3, 'Meera');
INSERT INTO enrollments (student_id, course_code)
VALUES (1, 'SQL-101'), (1, 'DBMS-201'), (2, 'SQL-101');
SELECT s.name, e.course_code
FROM students AS s
JOIN enrollments AS e ON e.student_id = s.id
ORDER BY s.name, e.course_code;
The join returns three rows: Asha with DBMS-201, Asha with SQL-101, and Ravi with SQL-101. Meera has no enrollment, so she is missing from that result. A LEFT JOIN keeps her and fills the course code with null, which is the usual way to find students who never enrolled.
What does the constraint buy you? Three things. An enrollment row for a student that does not exist cannot be inserted. A student row cannot be removed while an enrollment still points at it, unless you ask for a delete rule such as ON DELETE CASCADE. And a query can rely on the link without checking it by hand. One detail matters in SQLite: foreign keys are off by default on each connection, so PRAGMA foreign_keys = ON has to run before the check is active.
In a document store the same data looks different. The usual choice is to embed the enrollments inside the student document, or to keep a separate collection and link by id. The engine then checks nothing for you. Nothing stops a dangling id, and the joins happen in application code instead of in the database.
So the trade off is clear. A relational model gives you declared structure and enforced links. A document model gives you freedom to vary each record and to store it in one piece. The right choice depends on whether your data has stable relationships or widely varying shapes.