Understanding Data Modeling Concepts as a Data Engineer. ๐Ÿš€

Chisom Nnamani
Towards Data Engineering
3 min readDec 12, 2023

--

Image design by author

๐ƒ๐š๐ญ๐š ๐ฆ๐จ๐๐ž๐ฅ๐ข๐ง๐  is the process of creating a ๐๐š๐ญ๐š ๐ฆ๐จ๐๐ž๐ฅ; a blueprint or plan for organizing business data or information.

Imagine a data model as a way to plan and structure data so that it makes sense and is easy to understand, just like arranging items on shelves in a store.

Then think of data modeling itself as deciding how things should be placed on those shelves in the store to make it easy for anyone to find what they need.

Image design by author

After we choose the ERD notation style we would want to use for modeling our data, we go ahead to design the data model, which is in three phases:

๐ŸŒŸ๐‚๐จ๐ง๐œ๐ž๐ฉ๐ญ๐ฎ๐š๐ฅ ๐ƒ๐š๐ญ๐š ๐ฆ๐จ๐๐ž๐ฅ:

Illustration by author

This is like drawing a rough sketch of what you want to organize. For example, before building a house, you might draw a simple layout to decide where rooms should be. Similarly, a conceptual data model helps in planning what kind of information you want to store and how itโ€™s related.

So the conceptual model is the first version of the data model and gives an overview of what the business system contains.

What we do here is to identify data that will be used. So, we get a high-level understanding and how the entities(tables) connect. The primary keys or other attributes are not shown and we mainly use it as a communication tool.

๐ŸŒŸ๐‹๐จ๐ ๐ข๐œ๐š๐ฅ ๐ƒ๐š๐ญ๐š ๐ฆ๐จ๐๐ž๐ฅ:

Illustration by author

Once you have a rough sketch, you decide on the specifics. Going back to our house example, this would be like deciding the exact dimensions of each room and where the doors and windows should go.

In a logical data model, you get into the details of how data should be structured and connected.

Here, we add additional information to the conceptual model, giving further details of the model design. Here, the primary keys and the attributes(columns) are specified. Sometimes the data types are stated but they arenโ€™t always strictly specified. They can be used as placeholders.

๐ŸŒŸ๐๐ก๐ฒ๐ฌ๐ข๐œ๐š๐ฅ ๐ƒ๐š๐ญ๐š ๐ฆ๐จ๐๐ž๐ฅ:

Illustration by author

Now, itโ€™s time to build the house. The physical data model is like the construction plans, specifying the exact materials and methods for building. In the context of data, itโ€™s about implementing the structure you planned in the logical model in a specific database or system.

Here, you identify how the system will be implemented for a specific database management system like SQL server, MySQL, or Postgresql.

The physical model gives your final blueprint for the database design.

And thatโ€™s a simplified overview of the data modeling concept.

Below, are a few popular tools you can use for your data modeling design.

Image design by author

๐๐’: The data modeling is an iterative process, and you will keep going back to making changes, in each phase till you get what best fits the business requirements.

If you love this article, youโ€™d love to connect with me on Linkedin and feel free to follow me X (formerly Twitter). ๐ŸŒŸ

--

--

Chisom Nnamani
Towards Data Engineering

Data & Analytics Engineer | Passionate about Data | Connect with me on Linkedin โ€” https://www.linkedin.com/in/chisom-nnamani/