Skip to content

Data models

Data Models define how we give a structure to data, and how data is connected to other data.

Data Models define how we give a structure to data, and how data is connected to other data.

We have many different kinds of data models. They all can be grouped under 2 main umbrellas: conceptual models and logic models.

The most known conceptual model is the Entity-Relationship Model, also called ER. It's the best way to organize data at first, when you are in the design phase, because it's the model that's nearest how we think, and it's not linked to any specific implementation.

Logic models on the other hand are closer to the implementation.

Logic models include (among many others):

You can see the name already gives us a hint of how those models are implemented: tables for the relational model, trees of the hierarchical model, graphs for the reticular model, objects for the object model.

The relational model is the logic model that we'll soon see in more details, as it's the base of the popular relational databases, including PostgreSQL, MySQL, SQLite and SQL Server.

Conceptual models and logic models are two different tools. Using one does not exclude the other. We could start with a conceptual model and then use a logic model to implement it.

→ Download my free SQL Handbook!

THE VALLEY OF CODE

THE WEB DEVELOPER's MANUAL

You might be interested in those things I do:

  • Learn to code in THE VALLEY OF CODE, your your web development manual
  • Find a ton of Web Development projects to learn modern tech stacks in practice in THE VALLEY OF CODE PRO
  • I wrote 16 books for beginner software developers, DOWNLOAD THEM NOW
  • Every year I organize a hands-on cohort course coding BOOTCAMP to teach you how to build a complex, modern Web Application in practice (next edition February-March-April-May 2024)
  • Learn how to start a solopreneur business on the Internet with SOLO LAB (next edition in 2024)
  • Find me on X

Related posts that talk about database: