<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:googleplay="http://www.google.com/schemas/play-podcasts/1.0"><channel><title><![CDATA[The Data Lab]]></title><description><![CDATA[Your weekly field guide to everything data.]]></description><link>https://favourokoli1.substack.com</link><image><url>https://substackcdn.com/image/fetch/$s_!mPXH!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffd2fa106-cf8a-4f2b-8ad9-f0f09c9a84af_622x622.png</url><title>The Data Lab</title><link>https://favourokoli1.substack.com</link></image><generator>Substack</generator><lastBuildDate>Sun, 12 Apr 2026 22:01:06 GMT</lastBuildDate><atom:link href="https://favourokoli1.substack.com/feed" rel="self" type="application/rss+xml"/><copyright><![CDATA[Favour Okoli]]></copyright><language><![CDATA[en]]></language><webMaster><![CDATA[favourokoli1@substack.com]]></webMaster><itunes:owner><itunes:email><![CDATA[favourokoli1@substack.com]]></itunes:email><itunes:name><![CDATA[Favour Okoli]]></itunes:name></itunes:owner><itunes:author><![CDATA[Favour Okoli]]></itunes:author><googleplay:owner><![CDATA[favourokoli1@substack.com]]></googleplay:owner><googleplay:email><![CDATA[favourokoli1@substack.com]]></googleplay:email><googleplay:author><![CDATA[Favour Okoli]]></googleplay:author><itunes:block><![CDATA[Yes]]></itunes:block><item><title><![CDATA[An Introduction to the Python Programming Language]]></title><description><![CDATA[Python is a high-level programming language designed to prioritize code readability and developer productivity.]]></description><link>https://favourokoli1.substack.com/p/an-introduction-to-the-python-programming</link><guid isPermaLink="false">https://favourokoli1.substack.com/p/an-introduction-to-the-python-programming</guid><dc:creator><![CDATA[Favour Okoli]]></dc:creator><pubDate>Fri, 10 Apr 2026 16:40:43 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!VWop!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa6484dff-add8-4a08-a29b-632467aba01e_884x542.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Python is a high-level programming language designed to prioritize code readability and developer productivity. Created by Guido van Rossum and first released in 1991, it is an interpreted, object-oriented, and dynamically typed language. Today, it is maintained by the Python Software Foundation (PSF) and stands as one of the leading languages used in fields ranging from web development to artificial intelligence and data science.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!VWop!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa6484dff-add8-4a08-a29b-632467aba01e_884x542.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!VWop!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa6484dff-add8-4a08-a29b-632467aba01e_884x542.jpeg 424w, https://substackcdn.com/image/fetch/$s_!VWop!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa6484dff-add8-4a08-a29b-632467aba01e_884x542.jpeg 848w, https://substackcdn.com/image/fetch/$s_!VWop!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa6484dff-add8-4a08-a29b-632467aba01e_884x542.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!VWop!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa6484dff-add8-4a08-a29b-632467aba01e_884x542.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!VWop!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa6484dff-add8-4a08-a29b-632467aba01e_884x542.jpeg" width="884" height="542" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/a6484dff-add8-4a08-a29b-632467aba01e_884x542.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:542,&quot;width&quot;:884,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:16825,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://favourokoli1.substack.com/i/193555544?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa6484dff-add8-4a08-a29b-632467aba01e_884x542.jpeg&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!VWop!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa6484dff-add8-4a08-a29b-632467aba01e_884x542.jpeg 424w, https://substackcdn.com/image/fetch/$s_!VWop!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa6484dff-add8-4a08-a29b-632467aba01e_884x542.jpeg 848w, https://substackcdn.com/image/fetch/$s_!VWop!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa6484dff-add8-4a08-a29b-632467aba01e_884x542.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!VWop!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa6484dff-add8-4a08-a29b-632467aba01e_884x542.jpeg 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>.</p><h3>Why Choose Python?</h3><p>Python is frequently recommended for beginners and pros alike due to several key features:</p><ul><li><p><strong>Simple Syntax:</strong> It uses an English-like syntax that is straightforward, significantly reducing the learning curve.</p></li><li><p><strong>Readability through Indentation:</strong> Unlike many languages that use curly braces <code>{ }</code>, Python uses whitespace (indentation) to group blocks of code. This enforces clean, easy-to-follow code by design.</p></li><li><p><strong>&#8220;Batteries Included&#8221;:</strong> It comes with an extensive standard library that provides built-in modules for tasks like file operations, math, and web services right out of the box.</p></li><li><p><strong>Cross-Platform Portability:</strong> Python is &#8220;write once, run anywhere.&#8221; Programs can run on Windows, macOS, and Linux without needing significant modifications.</p></li></ul><div><hr></div><h3>Choosing Your Python Environment (IDE)</h3><p>To start coding, you need a development environment. Depending on your goals, you can start with:</p><ol><li><p><strong>Anaconda:</strong> A popular distribution that simplifies package management. It automatically installs Python, Jupyter Notebook, and hundreds of scientific libraries like NumPy and Pandas.</p></li><li><p><strong>Jupyter Notebook:</strong> A powerful interactive tool that allows you to run code in individual &#8220;cells.&#8221; This makes it the industry standard for data science and iterative experimentation.</p></li><li><p><strong>VS Code (Visual Studio Code):</strong> Currently the most popular general-purpose editor. It is highly customizable and works seamlessly with modern tools like <code>venv</code>, <code>conda</code>, and the ultra-fast <code>uv</code> package manager.</p></li><li><p><strong>PyCharm:</strong> A &#8220;professional-grade&#8221; Integrated Development Environment (IDE). It offers deep &#8220;intelligence&#8221; for finding bugs and managing massive, complex codebases.</p></li><li><p><strong>Google Colab:</strong> A cloud-based environment that requires zero installation. It runs in your browser and provides free access to powerful hardware (GPUs), which is ideal for machine learning.</p></li></ol><div><hr></div><h3>The Fundamental Building Blocks</h3><p>To write effective Python code, you must understand its core components:</p><p><strong>1. Variables and Data Types</strong></p><p>Variables are labels used to point to specific objects in memory. Python handles various built-in data types, including:</p><ul><li><p><strong>Numeric:</strong> Integers (whole numbers) and Floats (decimals).</p></li><li><p><strong>Sequences:</strong> Strings (text), Lists (ordered, changeable collections), and Tuples (ordered collections that cannot be changed after creation).</p></li><li><p><strong>Mappings:</strong> Dictionaries, which store information as <strong>key-value pairs</strong> (e.g., <code>'name': 'Gemini'</code>).</p></li></ul><p><strong>2. Control Flow</strong></p><p>Control flow allows your program to make decisions and repeat actions:</p><ul><li><p><code>if</code><strong> statements:</strong> Examine the state of a program and respond accordingly (e.g., &#8220;If the price is low, buy&#8221;).</p></li><li><p><code>for</code><strong> loops:</strong> Iterate over items in a sequence, such as a list of users or a string of text.</p></li><li><p><code>while</code><strong> loops:</strong> Repeat a block of code as long as a specific condition remains true.</p></li></ul><p><strong>3. Functions</strong></p><p>Functions are named blocks of organized, reusable code designed to perform a single action. They are defined using the <code>def</code> keyword. Instead of writing the same logic ten times, you write a function once and &#8220;call&#8221; it whenever needed.</p><div><hr></div><h3>Thinking in Objects (OOP)</h3><p>Python is an <strong>Object-Oriented Programming (OOP)</strong> language, which means it models complex problems as &#8220;objects.&#8221;</p><p>Think of a <strong>Class</strong> as a blueprint for a house. The blueprint itself isn&#8217;t a house, but it defines the attributes (windows, doors) and behaviors (opening the door). An <strong>Object</strong> is the actual house built from that blueprint. By using Classes as templates, you can create multiple instances that reuse code efficiently, helping you avoid messy &#8220;spaghetti code.&#8221;</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://favourokoli1.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading The Data Lab! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><p></p>]]></content:encoded></item><item><title><![CDATA[The Invisible Engine: How Data Powers Our Daily World]]></title><description><![CDATA[Don&#8217;t wait for permission to be who you already are.]]></description><link>https://favourokoli1.substack.com/p/the-invisible-engine-how-data-powers</link><guid isPermaLink="false">https://favourokoli1.substack.com/p/the-invisible-engine-how-data-powers</guid><dc:creator><![CDATA[Favour Okoli]]></dc:creator><pubDate>Fri, 03 Apr 2026 16:40:40 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!UvSV!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4fea5fd9-3c4c-4452-8b0b-0ae385ae6caf_1080x1080.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!UvSV!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4fea5fd9-3c4c-4452-8b0b-0ae385ae6caf_1080x1080.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!UvSV!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4fea5fd9-3c4c-4452-8b0b-0ae385ae6caf_1080x1080.jpeg 424w, https://substackcdn.com/image/fetch/$s_!UvSV!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4fea5fd9-3c4c-4452-8b0b-0ae385ae6caf_1080x1080.jpeg 848w, https://substackcdn.com/image/fetch/$s_!UvSV!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4fea5fd9-3c4c-4452-8b0b-0ae385ae6caf_1080x1080.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!UvSV!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4fea5fd9-3c4c-4452-8b0b-0ae385ae6caf_1080x1080.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!UvSV!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4fea5fd9-3c4c-4452-8b0b-0ae385ae6caf_1080x1080.jpeg" width="1080" height="1080" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/4fea5fd9-3c4c-4452-8b0b-0ae385ae6caf_1080x1080.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1080,&quot;width&quot;:1080,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:39296,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://favourokoli1.substack.com/i/193061985?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4fea5fd9-3c4c-4452-8b0b-0ae385ae6caf_1080x1080.jpeg&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!UvSV!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4fea5fd9-3c4c-4452-8b0b-0ae385ae6caf_1080x1080.jpeg 424w, https://substackcdn.com/image/fetch/$s_!UvSV!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4fea5fd9-3c4c-4452-8b0b-0ae385ae6caf_1080x1080.jpeg 848w, https://substackcdn.com/image/fetch/$s_!UvSV!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4fea5fd9-3c4c-4452-8b0b-0ae385ae6caf_1080x1080.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!UvSV!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4fea5fd9-3c4c-4452-8b0b-0ae385ae6caf_1080x1080.jpeg 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><blockquote><p><em>Don&#8217;t wait for permission to be who you already are. ~ Oprah Winfrey</em></p></blockquote><p>So many of us are sitting on ideas we haven&#8217;t shared, steps we haven&#8217;t taken, and versions of ourselves we haven&#8217;t fully stepped into. Not because we are not ready, but because we are waiting. Waiting to feel certain. Waiting to feel chosen. Waiting for a sign.</p><p>But what if you don&#8217;t need permission?</p><p>What if this new month is your reminder that you are already allowed to start, to try, to show up as the person you are becoming?</p><p>Not perfectly. Not all at once. But intentionally.</p><p>Welcome to a new month &#8212; a fresh page to take bolder steps, trust yourself a little more, and move with clarity.</p><div><hr></div><h3>The Science of the Everyday: Data in Action</h3><p>To be truly effective in the tech world, we must recognize the sophisticated data models working behind the scenes in our most common tools. Here is how data is currently transforming the sectors we interact with every single day:</p><ol><li><p>Your Inbox: <strong> </strong>Every time you open your email, a complex experiment is running. Using <strong>Supervised Learning</strong>, your email provider acts as a filter. Specifically, algorithms like <strong>Naive Bayes</strong>&#8212;a probabilistic model&#8212;are used to calculate the likelihood that an incoming message is "Spam," "Not Spam," or a "Promotion." By looking at word frequencies and historical data, the system effectively keeps your digital workspace clean.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!L1R_!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F11a244e4-9272-4d4a-9ea6-668798043566_1080x590.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!L1R_!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F11a244e4-9272-4d4a-9ea6-668798043566_1080x590.jpeg 424w, https://substackcdn.com/image/fetch/$s_!L1R_!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F11a244e4-9272-4d4a-9ea6-668798043566_1080x590.jpeg 848w, https://substackcdn.com/image/fetch/$s_!L1R_!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F11a244e4-9272-4d4a-9ea6-668798043566_1080x590.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!L1R_!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F11a244e4-9272-4d4a-9ea6-668798043566_1080x590.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!L1R_!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F11a244e4-9272-4d4a-9ea6-668798043566_1080x590.jpeg" width="1080" height="590" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/11a244e4-9272-4d4a-9ea6-668798043566_1080x590.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:590,&quot;width&quot;:1080,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:52314,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://favourokoli1.substack.com/i/193061985?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F11a244e4-9272-4d4a-9ea6-668798043566_1080x590.jpeg&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!L1R_!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F11a244e4-9272-4d4a-9ea6-668798043566_1080x590.jpeg 424w, https://substackcdn.com/image/fetch/$s_!L1R_!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F11a244e4-9272-4d4a-9ea6-668798043566_1080x590.jpeg 848w, https://substackcdn.com/image/fetch/$s_!L1R_!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F11a244e4-9272-4d4a-9ea6-668798043566_1080x590.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!L1R_!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F11a244e4-9272-4d4a-9ea6-668798043566_1080x590.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p> </p></li><li><p>Communication: When you use predictive text on your phone or talk to a virtual assistant, you are engaging with <strong>Natural Language Processing (NLP)</strong>. This sector of the data world is incredibly effective at bridging the gap between human speech and machine understanding. NLP allows machines to read the sentiment of your messages or translate languages in real-time, proving that data isn't just about numbers, it is about the very way we connect.</p></li><li><p>Urban Living and Commerce: <strong>The Smart Sector</strong> from the maps that predict traffic patterns, to the apps that suggest your next favorite song, data is the "orbital line" circling our daily lives. In these sectors, data effectiveness is measured by <strong>efficiency</strong>. Logistics companies use data to optimize routes, while retail sectors use recommendation engines to ensure that the lightbulb of discovery happens exactly when you need a new product.</p></li></ol><p>This month, I challenge you to find one everyday object&#8212;your fridge, your car, your favorite app and think about the data lifecycle behind it. </p><p><strong>Stay Analytical. Stay Innovative</strong></p><div class="captioned-button-wrap" data-attrs="{&quot;url&quot;:&quot;https://favourokoli1.substack.com/p/the-invisible-engine-how-data-powers?utm_source=substack&utm_medium=email&utm_content=share&action=share&quot;,&quot;text&quot;:&quot;Share&quot;}" data-component-name="CaptionedButtonToDOM"><div class="preamble"><p class="cta-caption">Thanks for reading The Data Lab! This post is public so feel free to share it.</p></div><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://favourokoli1.substack.com/p/the-invisible-engine-how-data-powers?utm_source=substack&utm_medium=email&utm_content=share&action=share&quot;,&quot;text&quot;:&quot;Share&quot;}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://favourokoli1.substack.com/p/the-invisible-engine-how-data-powers?utm_source=substack&utm_medium=email&utm_content=share&action=share"><span>Share</span></a></p></div><p></p>]]></content:encoded></item><item><title><![CDATA[Test Your Knowledge: SQL Flashcards ]]></title><description><![CDATA[In our previous sessions at The Data Lab, we have been digging deep into the essential building blocks of SQL&#8212;from the GROUP BY and HAVING clauses to the nuances of ORDER BY and ALIASING. My mission is always to make complex insights simple for you, and today, I have a special treat to help you master these concepts.]]></description><link>https://favourokoli1.substack.com/p/test-your-knowledge-sql-flashcards</link><guid isPermaLink="false">https://favourokoli1.substack.com/p/test-your-knowledge-sql-flashcards</guid><dc:creator><![CDATA[Favour Okoli]]></dc:creator><pubDate>Fri, 27 Mar 2026 16:40:41 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!WJqF!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F43063b67-d597-4966-97f2-a4a77feea219_2000x1414.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>In our previous sessions at <strong>The Data Lab</strong>, we have been digging deep into the essential building blocks of SQL&#8212;from the <strong>GROUP BY</strong> and <strong>HAVING</strong> clauses to the nuances of <strong>ORDER BY and ALIASING</strong>. My mission is always to <strong>make complex insights simple for you</strong>, and today, I have a special treat to help you master these concepts.</p><p>I have put together a set of <strong>8 Digital Flashcards</strong> to help you test your memory.</p><p><strong>How to use them:</strong></p><ol><li><p>Look at the <strong>Questions</strong> in the first image below.</p></li><li><p>Try to answer as many as you can (mentally or on paper).</p></li><li><p>Scroll down to the second image to <strong>reveal the answers</strong> and see how you did!</p></li></ol><h3><strong>The Questions</strong></h3><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!WJqF!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F43063b67-d597-4966-97f2-a4a77feea219_2000x1414.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!WJqF!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F43063b67-d597-4966-97f2-a4a77feea219_2000x1414.png 424w, https://substackcdn.com/image/fetch/$s_!WJqF!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F43063b67-d597-4966-97f2-a4a77feea219_2000x1414.png 848w, https://substackcdn.com/image/fetch/$s_!WJqF!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F43063b67-d597-4966-97f2-a4a77feea219_2000x1414.png 1272w, https://substackcdn.com/image/fetch/$s_!WJqF!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F43063b67-d597-4966-97f2-a4a77feea219_2000x1414.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!WJqF!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F43063b67-d597-4966-97f2-a4a77feea219_2000x1414.png" width="1456" height="1029" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/43063b67-d597-4966-97f2-a4a77feea219_2000x1414.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1029,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:279641,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://favourokoli1.substack.com/i/192294238?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F43063b67-d597-4966-97f2-a4a77feea219_2000x1414.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!WJqF!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F43063b67-d597-4966-97f2-a4a77feea219_2000x1414.png 424w, https://substackcdn.com/image/fetch/$s_!WJqF!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F43063b67-d597-4966-97f2-a4a77feea219_2000x1414.png 848w, https://substackcdn.com/image/fetch/$s_!WJqF!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F43063b67-d597-4966-97f2-a4a77feea219_2000x1414.png 1272w, https://substackcdn.com/image/fetch/$s_!WJqF!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F43063b67-d597-4966-97f2-a4a77feea219_2000x1414.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><h3><strong>The Answers</strong></h3><p>A popular quote we all know says:</p><blockquote><p><em>The expert in anything was once a beginner. &#8212; Helen Hayes</em></p></blockquote><p>So don&#8217;t worry if you didn&#8217;t get them all! The art of data is all about practice.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!24hF!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a2f2b03-4cd9-475c-ab0c-f708dfdc1092_2000x1414.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!24hF!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a2f2b03-4cd9-475c-ab0c-f708dfdc1092_2000x1414.png 424w, https://substackcdn.com/image/fetch/$s_!24hF!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a2f2b03-4cd9-475c-ab0c-f708dfdc1092_2000x1414.png 848w, https://substackcdn.com/image/fetch/$s_!24hF!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a2f2b03-4cd9-475c-ab0c-f708dfdc1092_2000x1414.png 1272w, https://substackcdn.com/image/fetch/$s_!24hF!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a2f2b03-4cd9-475c-ab0c-f708dfdc1092_2000x1414.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!24hF!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a2f2b03-4cd9-475c-ab0c-f708dfdc1092_2000x1414.png" width="1456" height="1029" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/7a2f2b03-4cd9-475c-ab0c-f708dfdc1092_2000x1414.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1029,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:188306,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://favourokoli1.substack.com/i/192294238?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a2f2b03-4cd9-475c-ab0c-f708dfdc1092_2000x1414.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!24hF!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a2f2b03-4cd9-475c-ab0c-f708dfdc1092_2000x1414.png 424w, https://substackcdn.com/image/fetch/$s_!24hF!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a2f2b03-4cd9-475c-ab0c-f708dfdc1092_2000x1414.png 848w, https://substackcdn.com/image/fetch/$s_!24hF!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a2f2b03-4cd9-475c-ab0c-f708dfdc1092_2000x1414.png 1272w, https://substackcdn.com/image/fetch/$s_!24hF!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a2f2b03-4cd9-475c-ab0c-f708dfdc1092_2000x1414.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p><em>Happy weekend! Stay curious and keep exploring data :))</em></p>]]></content:encoded></item><item><title><![CDATA[HAVING Clause in SQL]]></title><description><![CDATA[Today I will be talking about the HAVING clause; the gatekeeper for aggregated data.]]></description><link>https://favourokoli1.substack.com/p/having-clause-in-sql</link><guid isPermaLink="false">https://favourokoli1.substack.com/p/having-clause-in-sql</guid><dc:creator><![CDATA[Favour Okoli]]></dc:creator><pubDate>Fri, 20 Mar 2026 16:40:53 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!kW9w!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5b82903f-f6fd-48fb-8150-7c8e420efc10_1355x551.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Today I will be talking about the HAVING clause; the gatekeeper for aggregated data.</p><h4>The Post Aggregation Filter</h4><p>If you look at the query below, you will notice a specific line that wasn&#8217;t there in our previous session: HAVING total_mileage &gt; 500000</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!kW9w!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5b82903f-f6fd-48fb-8150-7c8e420efc10_1355x551.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!kW9w!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5b82903f-f6fd-48fb-8150-7c8e420efc10_1355x551.png 424w, https://substackcdn.com/image/fetch/$s_!kW9w!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5b82903f-f6fd-48fb-8150-7c8e420efc10_1355x551.png 848w, https://substackcdn.com/image/fetch/$s_!kW9w!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5b82903f-f6fd-48fb-8150-7c8e420efc10_1355x551.png 1272w, https://substackcdn.com/image/fetch/$s_!kW9w!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5b82903f-f6fd-48fb-8150-7c8e420efc10_1355x551.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!kW9w!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5b82903f-f6fd-48fb-8150-7c8e420efc10_1355x551.png" width="1355" height="551" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/5b82903f-f6fd-48fb-8150-7c8e420efc10_1355x551.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:551,&quot;width&quot;:1355,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:63126,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://favourokoli1.substack.com/i/190775558?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5b82903f-f6fd-48fb-8150-7c8e420efc10_1355x551.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!kW9w!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5b82903f-f6fd-48fb-8150-7c8e420efc10_1355x551.png 424w, https://substackcdn.com/image/fetch/$s_!kW9w!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5b82903f-f6fd-48fb-8150-7c8e420efc10_1355x551.png 848w, https://substackcdn.com/image/fetch/$s_!kW9w!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5b82903f-f6fd-48fb-8150-7c8e420efc10_1355x551.png 1272w, https://substackcdn.com/image/fetch/$s_!kW9w!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5b82903f-f6fd-48fb-8150-7c8e420efc10_1355x551.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><h5>Why HAVING and not WHERE?</h5><p>This is the most common point of confusion for data analysts, but the distinction is simple once you understand the SQL <strong>Order of Operations</strong>:</p><ol><li><p>WHERE is a pre-filter. It looks at individual rows before any math happens.</p></li><li><p>HAVING is a post-filter. It looks at the results after the math(SUM) is finished.</p></li></ol><p>In our dataset, the database doesn&#8217;t know the total_mileage for Ford or Dodge until it finishes grouping them and adding up the numbers, because total_mileage is a calculated aggregate, a WHERE clause would actually cause an error here. It can&#8217;t filter a number that doesn&#8217;t exist yet.</p><p><em>If you are filtering by a raw column (like color or year), use <strong>WHERE</strong>. If you are filtering by a calculated total (like SUM or AVG), you must use <strong>HAVING</strong>.</em></p><p><em>Happy Querying!!! </em></p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://favourokoli1.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Favour Okoli (WIN Ambassador)! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[ORDER BY and ALIASING in SQL]]></title><description><![CDATA[This week , I&#8217;m moving from the &#8216;how&#8217; of grouping data to the &#8216;how&#8217; of presenting it.]]></description><link>https://favourokoli1.substack.com/p/order-by-and-aliasing-in-sql</link><guid isPermaLink="false">https://favourokoli1.substack.com/p/order-by-and-aliasing-in-sql</guid><dc:creator><![CDATA[Favour Okoli]]></dc:creator><pubDate>Fri, 13 Mar 2026 16:40:40 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!_FIn!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5cc54050-0964-42a2-ae84-5fc43beaf982_1350x583.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>This week , I&#8217;m moving from the &#8216;how&#8217; of grouping data to the &#8216;how&#8217; of presenting it. Last week was about gathering our ingredients (using GROUP BY) today is about labeling the jars and shelving them in the right order. Looking at the screenshot below I have refined the query to show exactly which brands are dominating the road by cumulative mileage.</p><p>Here is the technical breakdown of how we get from raw rows to an ordered leaderboard.</p><h4>The Anatomy of the Query</h4><p>To get this result, I used two critical SQL features: <em>Aliasing and Ordering.</em></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!_FIn!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5cc54050-0964-42a2-ae84-5fc43beaf982_1350x583.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!_FIn!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5cc54050-0964-42a2-ae84-5fc43beaf982_1350x583.png 424w, https://substackcdn.com/image/fetch/$s_!_FIn!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5cc54050-0964-42a2-ae84-5fc43beaf982_1350x583.png 848w, https://substackcdn.com/image/fetch/$s_!_FIn!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5cc54050-0964-42a2-ae84-5fc43beaf982_1350x583.png 1272w, https://substackcdn.com/image/fetch/$s_!_FIn!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5cc54050-0964-42a2-ae84-5fc43beaf982_1350x583.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!_FIn!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5cc54050-0964-42a2-ae84-5fc43beaf982_1350x583.png" width="1350" height="583" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/5cc54050-0964-42a2-ae84-5fc43beaf982_1350x583.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:583,&quot;width&quot;:1350,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:63845,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://favourokoli1.substack.com/i/190709604?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5cc54050-0964-42a2-ae84-5fc43beaf982_1350x583.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!_FIn!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5cc54050-0964-42a2-ae84-5fc43beaf982_1350x583.png 424w, https://substackcdn.com/image/fetch/$s_!_FIn!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5cc54050-0964-42a2-ae84-5fc43beaf982_1350x583.png 848w, https://substackcdn.com/image/fetch/$s_!_FIn!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5cc54050-0964-42a2-ae84-5fc43beaf982_1350x583.png 1272w, https://substackcdn.com/image/fetch/$s_!_FIn!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5cc54050-0964-42a2-ae84-5fc43beaf982_1350x583.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><ol><li><p>The Alias (AS total_mileage) : In the SELECT statement, SUM(mileage) is a calculation. Without an alias, the database would output a messy column header like SUM(mileage).</p><ol><li><p>What I did: I used the AS keyword to create a clean, human readable name; total_mileage</p></li><li><p>Why it matters: Aliasing isn&#8217;t just about aesthetics; it makes the output professional for stakeholders and more importantly allows us to reference that new name later in the query(like what I did in the sorting phase).</p></li></ol></li><li><p> The Sort Logic (ORDER BY &#8230; DESC) : Data is only as good as its accessibility. By default, SQL returns data in whatever order it finds it. To find the top brand, we  have to force a hierarchy.</p><ol><li><p>The Clause: ORDER BY total_mileage tells the database which column to use as the anchor list.</p></li><li><p>The Modifier: I added DESC(Descending). This ensures the highest mileage (Ford, at over 64 million) appears at the top, while lower values like Mercedes scale down toward the bottom.</p></li></ol></li></ol><h4>Key Takeaways:</h4><ul><li><p>Alias for Clarity: Always rename your aggregates, total_mileage reads better than SUM(mileage).</p></li><li><p>Order for Impact: Use DESC for leaderboards (highest to lowest) and ASC for things like chronological timelines or bottom-performers list.</p></li></ul><div class="captioned-button-wrap" data-attrs="{&quot;url&quot;:&quot;https://favourokoli1.substack.com/p/order-by-and-aliasing-in-sql?utm_source=substack&utm_medium=email&utm_content=share&action=share&quot;,&quot;text&quot;:&quot;Share&quot;}" data-component-name="CaptionedButtonToDOM"><div class="preamble"><p class="cta-caption">Thanks for reading Favour Okoli (WIN Ambassador)! This post is public so feel free to share it.</p></div><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://favourokoli1.substack.com/p/order-by-and-aliasing-in-sql?utm_source=substack&utm_medium=email&utm_content=share&action=share&quot;,&quot;text&quot;:&quot;Share&quot;}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://favourokoli1.substack.com/p/order-by-and-aliasing-in-sql?utm_source=substack&utm_medium=email&utm_content=share&action=share"><span>Share</span></a></p></div><p></p><p></p>]]></content:encoded></item><item><title><![CDATA[GROUP BY in SQL]]></title><description><![CDATA[In my last post, I talked about using the Wildcard(%) to find specific data.]]></description><link>https://favourokoli1.substack.com/p/group-by-in-sql</link><guid isPermaLink="false">https://favourokoli1.substack.com/p/group-by-in-sql</guid><dc:creator><![CDATA[Favour Okoli]]></dc:creator><pubDate>Fri, 06 Mar 2026 16:40:39 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!z3u1!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8be6e186-1da0-4e00-b8e8-3e6ea667b604_1354x690.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>In my last post, I talked about using the Wildcard(%) to find specific data. But once you have found your data, how do you make sense of the volume?</p><p>That&#8217;s where the <strong>GROUP BY</strong> clause comes in.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!z3u1!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8be6e186-1da0-4e00-b8e8-3e6ea667b604_1354x690.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!z3u1!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8be6e186-1da0-4e00-b8e8-3e6ea667b604_1354x690.png 424w, https://substackcdn.com/image/fetch/$s_!z3u1!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8be6e186-1da0-4e00-b8e8-3e6ea667b604_1354x690.png 848w, https://substackcdn.com/image/fetch/$s_!z3u1!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8be6e186-1da0-4e00-b8e8-3e6ea667b604_1354x690.png 1272w, https://substackcdn.com/image/fetch/$s_!z3u1!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8be6e186-1da0-4e00-b8e8-3e6ea667b604_1354x690.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!z3u1!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8be6e186-1da0-4e00-b8e8-3e6ea667b604_1354x690.png" width="1354" height="690" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/8be6e186-1da0-4e00-b8e8-3e6ea667b604_1354x690.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:690,&quot;width&quot;:1354,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:71469,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://favourokoli1.substack.com/i/190115744?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8be6e186-1da0-4e00-b8e8-3e6ea667b604_1354x690.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!z3u1!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8be6e186-1da0-4e00-b8e8-3e6ea667b604_1354x690.png 424w, https://substackcdn.com/image/fetch/$s_!z3u1!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8be6e186-1da0-4e00-b8e8-3e6ea667b604_1354x690.png 848w, https://substackcdn.com/image/fetch/$s_!z3u1!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8be6e186-1da0-4e00-b8e8-3e6ea667b604_1354x690.png 1272w, https://substackcdn.com/image/fetch/$s_!z3u1!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8be6e186-1da0-4e00-b8e8-3e6ea667b604_1354x690.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><h4>The Mechanics: Sorters vs. Counters</h4><p>A common mistake is thinking <strong>GROUP BY</strong> does the counting. It doesn&#8217;t.</p><p>Think of it this way:</p><ol><li><p>Group By is the Sorter: It takes 2000+ messy rows and sorts them into neat &#8216;bucket&#8217; based on the brand.</p></li><li><p>COUNT(*) is the Tool: Once the buckets are sorted, COUNT reaches into each one and tells us exactly how many items are inside.</p></li></ol><p>When you combine them you transform a massive table into a high level summary.</p><p>As the economist Ronald Coase famously said, <em>Torture the data and it will confess to anything.</em> As analysts, GROUP BY is how we start our interrogation. Looking at my results above, the <em>confession</em> is clear: Ford is the heavyweight here. With 1,235 records, it dominates the dataset. <br>&#8203;<br>&#8203;Once you have grouped your data and seen the distribution, how do you handle the "Long Tail" (those brands with only 1 or 2 entries)?<br>&#8203;Do you filter them out to keep the analysis clean? Or do you keep them in to show the full market reality?<br><em>&#8203;Drop your strategy in the comments. Let's talk shop. </em></p><p></p><div class="captioned-button-wrap" data-attrs="{&quot;url&quot;:&quot;https://favourokoli1.substack.com/p/group-by-in-sql?utm_source=substack&utm_medium=email&utm_content=share&action=share&quot;,&quot;text&quot;:&quot;Share&quot;}" data-component-name="CaptionedButtonToDOM"><div class="preamble"><p class="cta-caption">Thanks for reading Favour Okoli (WIN Ambassador)! This post is public so feel free to share it.</p></div><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://favourokoli1.substack.com/p/group-by-in-sql?utm_source=substack&utm_medium=email&utm_content=share&action=share&quot;,&quot;text&quot;:&quot;Share&quot;}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://favourokoli1.substack.com/p/group-by-in-sql?utm_source=substack&utm_medium=email&utm_content=share&action=share"><span>Share</span></a></p></div><p></p>]]></content:encoded></item><item><title><![CDATA[The Wildcard (%)]]></title><description><![CDATA[Using the % wildcard for flexible and powerful data searches]]></description><link>https://favourokoli1.substack.com/p/the-wildcard</link><guid isPermaLink="false">https://favourokoli1.substack.com/p/the-wildcard</guid><dc:creator><![CDATA[Favour Okoli]]></dc:creator><pubDate>Fri, 27 Feb 2026 16:40:07 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!uKca!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9c7f2651-0184-4c48-b74d-c60a20a7dce6_1365x647.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>The real power of a <strong>LIKE</strong> operator comes from the Wildcard symbol (%). This symbol tells the database to fill in the blanks for any number of characters or even no characters at all.</p><p>In my query today, I used the pattern &#8216;%or%&#8217;. This tells the database: <em>find me any state that has the letters &#8216;or&#8217; anywhere in the name.</em></p><h3>How to use it</h3><p>The syntax is straightforward. You select your columns as usual, but you swap the equals sign for the LIKE operator</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!uKca!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9c7f2651-0184-4c48-b74d-c60a20a7dce6_1365x647.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!uKca!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9c7f2651-0184-4c48-b74d-c60a20a7dce6_1365x647.png 424w, https://substackcdn.com/image/fetch/$s_!uKca!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9c7f2651-0184-4c48-b74d-c60a20a7dce6_1365x647.png 848w, https://substackcdn.com/image/fetch/$s_!uKca!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9c7f2651-0184-4c48-b74d-c60a20a7dce6_1365x647.png 1272w, https://substackcdn.com/image/fetch/$s_!uKca!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9c7f2651-0184-4c48-b74d-c60a20a7dce6_1365x647.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!uKca!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9c7f2651-0184-4c48-b74d-c60a20a7dce6_1365x647.png" width="1365" height="647" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/9c7f2651-0184-4c48-b74d-c60a20a7dce6_1365x647.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:647,&quot;width&quot;:1365,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:74702,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://favourokoli1.substack.com/i/189375241?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9c7f2651-0184-4c48-b74d-c60a20a7dce6_1365x647.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!uKca!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9c7f2651-0184-4c48-b74d-c60a20a7dce6_1365x647.png 424w, https://substackcdn.com/image/fetch/$s_!uKca!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9c7f2651-0184-4c48-b74d-c60a20a7dce6_1365x647.png 848w, https://substackcdn.com/image/fetch/$s_!uKca!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9c7f2651-0184-4c48-b74d-c60a20a7dce6_1365x647.png 1272w, https://substackcdn.com/image/fetch/$s_!uKca!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9c7f2651-0184-4c48-b74d-c60a20a7dce6_1365x647.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>In the query shown in the image,  I am defining exactly what I want to pull from the usa_cars_datasets table:</p><ul><li><p>state, model, year: I have narrowed the focus to these three columns. This tells the database to show me the location, the specific model name and the make of the car.</p></li><li><p>FROM usa_cars_datasets: This identifies the specific table where the data is stored.</p></li><li><p>WHERE state LIKE &#8216;%or%&#8217;: This is the filter. It scans the state column for the &#8216;or&#8217; sequence</p></li></ul><h3>The Results</h3><p>By using this query, the database returns state like Florida, Georgia, California. As you can see in my screenshot above the database doesn&#8217;t just look for a single letter, it finds every state where that specific "&#8216;or&#8217; pattern exists. It is the perfect tool for grouping data by shared patterns without needing to know the exact name in the list.</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://favourokoli1.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Favour Okoli (WIN Ambassador)! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><div class="captioned-button-wrap" data-attrs="{&quot;url&quot;:&quot;https://favourokoli1.substack.com/p/the-wildcard?utm_source=substack&utm_medium=email&utm_content=share&action=share&quot;,&quot;text&quot;:&quot;Share&quot;}" data-component-name="CaptionedButtonToDOM"><div class="preamble"><p class="cta-caption">Thanks for reading Favour Okoli (WIN Ambassador)! This post is public so feel free to share it.</p></div><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://favourokoli1.substack.com/p/the-wildcard?utm_source=substack&utm_medium=email&utm_content=share&action=share&quot;,&quot;text&quot;:&quot;Share&quot;}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://favourokoli1.substack.com/p/the-wildcard?utm_source=substack&utm_medium=email&utm_content=share&action=share"><span>Share</span></a></p></div><p></p>]]></content:encoded></item><item><title><![CDATA[A Guide to the = and IN Operators]]></title><description><![CDATA[Picking Favorites: Are You Hunting for a Needle in a Haystack?]]></description><link>https://favourokoli1.substack.com/p/a-guide-to-the-and-in-operators</link><guid isPermaLink="false">https://favourokoli1.substack.com/p/a-guide-to-the-and-in-operators</guid><dc:creator><![CDATA[Favour Okoli]]></dc:creator><pubDate>Fri, 20 Feb 2026 16:40:31 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!EGlp!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd55d4edd-2f68-4068-ba5b-5dd1626f588e_1359x698.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h3>Picking Favorites: Are You Hunting for a Needle in a Haystack?</h3><p>Have you ever opened a massive spreadsheet and felt your eyes glaze over trying to find just one specific thing? Maybe you were looking for every Ford sold in Georgia, but you got stuck scrolling through 5,000 rows of Chevrolets in California instead.</p><p>Last week, I talked about grabbing ranges of data. But what if you don&#8217;t want a range? What if you have a &#8220;VIP list&#8221; and you want the database to ignore the rest?</p><p>Today, we will be using the = and IN operators to cut through the noise and get exactly what we want.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!EGlp!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd55d4edd-2f68-4068-ba5b-5dd1626f588e_1359x698.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!EGlp!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd55d4edd-2f68-4068-ba5b-5dd1626f588e_1359x698.png 424w, https://substackcdn.com/image/fetch/$s_!EGlp!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd55d4edd-2f68-4068-ba5b-5dd1626f588e_1359x698.png 848w, https://substackcdn.com/image/fetch/$s_!EGlp!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd55d4edd-2f68-4068-ba5b-5dd1626f588e_1359x698.png 1272w, https://substackcdn.com/image/fetch/$s_!EGlp!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd55d4edd-2f68-4068-ba5b-5dd1626f588e_1359x698.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!EGlp!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd55d4edd-2f68-4068-ba5b-5dd1626f588e_1359x698.png" width="1359" height="698" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/d55d4edd-2f68-4068-ba5b-5dd1626f588e_1359x698.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:698,&quot;width&quot;:1359,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:82441,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://favourokoli1.substack.com/i/188606567?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd55d4edd-2f68-4068-ba5b-5dd1626f588e_1359x698.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!EGlp!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd55d4edd-2f68-4068-ba5b-5dd1626f588e_1359x698.png 424w, https://substackcdn.com/image/fetch/$s_!EGlp!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd55d4edd-2f68-4068-ba5b-5dd1626f588e_1359x698.png 848w, https://substackcdn.com/image/fetch/$s_!EGlp!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd55d4edd-2f68-4068-ba5b-5dd1626f588e_1359x698.png 1272w, https://substackcdn.com/image/fetch/$s_!EGlp!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd55d4edd-2f68-4068-ba5b-5dd1626f588e_1359x698.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><h3>The Sticky Notes of SQL: Comments</h3><p>Before you look at the queries, notice those sentence at the top of my queries. Those are <strong>comments</strong>. In SQL, comments are notes written for humans that the database engine completely ignores. They are like breadcrumbs that help you or your team remember why you wrote a specific query.</p><p>In the screenshot, I used the double dash method, but you actually have three ways to leave notes in MySQL:</p><ul><li><p>The Double Dash (- -) : This is the standard single-line comment you see in my code. In MySQL, you must put a space after the second dash. Without that space, the database will get confused and throw an error.</p></li><li><p>The Hash/Pound Sign (#) : A MySQL-specific shortcut. It is great for quick, one-line notes because it doesn&#8217;t require that extra space at the end</p></li><li><p>The C-Style/Multi-line (/* &#8230; */) : If you have a lot to say, you wrap your text in these bookends. This is perfect for long explanations or for turning off a chunk of queries while you are testing something else.</p></li></ul><h3>How to use it</h3><p>The syntax is straightforward. You select your columns, then use the WHERE clause followed by the specific value you want to capture:</p><ul><li><p><strong>state, model, brand:</strong> These are the specific columns (headers) I want to see. Instead of pulling everything, I&#8217;m telling the database to only show us the location, the specific model, and the make of the car.</p></li><li><p><strong>FROM usa_cars_datasets:</strong> This identifies the specific table where all this car data is stored.</p></li></ul><h3>Using WHERE and IN</h3><p>To filter the data, we combine WHERE clause with our specific operators:</p><ul><li><p><strong>The Equals Operator(=)</strong>: This acts like a laser. In the first query, WHERE state = &#8216;Georgia&#8217; tells the database: <em>Don&#8217;t show me everything, only show me rows that match Georgia exactly.</em></p></li><li><p><strong>The IN operator: </strong>This is used to select values within a specific list. It is much faster and cleaner than writing multiple OR commands</p></li></ul><p>How it works: The database looks at the state column and grabs every car that fits into our VIP list(New Jersey or Florida). As you can see in the &#8220;Action Output&#8221; at the bottom of my image above, this refined our list down to 333 rows in just 0.015 second. It is a simple way to isolate specific categories without losing the big picture of the data.</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://favourokoli1.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Favour Okoli (WIN Ambassador)! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><div class="captioned-button-wrap" data-attrs="{&quot;url&quot;:&quot;https://favourokoli1.substack.com/p/a-guide-to-the-and-in-operators?utm_source=substack&utm_medium=email&utm_content=share&action=share&quot;,&quot;text&quot;:&quot;Share&quot;}" data-component-name="CaptionedButtonToDOM"><div class="preamble"><p class="cta-caption">Thanks for reading Favour Okoli (WIN Ambassador)! This post is public so feel free to share it.</p></div><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://favourokoli1.substack.com/p/a-guide-to-the-and-in-operators?utm_source=substack&utm_medium=email&utm_content=share&action=share&quot;,&quot;text&quot;:&quot;Share&quot;}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://favourokoli1.substack.com/p/a-guide-to-the-and-in-operators?utm_source=substack&utm_medium=email&utm_content=share&action=share"><span>Share</span></a></p></div><p></p>]]></content:encoded></item><item><title><![CDATA[Filtering Data Ranges with the BETWEEN Operator]]></title><description><![CDATA[Happy Friday, data explorers!]]></description><link>https://favourokoli1.substack.com/p/filtering-data-ranges-with-the-between</link><guid isPermaLink="false">https://favourokoli1.substack.com/p/filtering-data-ranges-with-the-between</guid><dc:creator><![CDATA[Favour Okoli]]></dc:creator><pubDate>Fri, 13 Feb 2026 16:40:59 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!m2lw!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F31b069a8-36d4-4097-bcef-525005cbef4c_1366x722.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Happy Friday, data explorers! I believe you have practiced the queries from last week. Today, we will look at using the <strong>BETWEEN</strong> operator to get a range of data in our datasets.</p><p>When you need to filter results within a specific minimum and maximum value, <strong>BETWEEN</strong> is the most efficient tool for the job. It saves you from writing multiple AND operators and keeps your code clean.</p><h3>How to use it</h3><p>The syntax is straightforward. You select your column(s), then use the <strong>WHERE</strong> clause followed by the column name and the range you want to capture:</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!m2lw!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F31b069a8-36d4-4097-bcef-525005cbef4c_1366x722.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!m2lw!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F31b069a8-36d4-4097-bcef-525005cbef4c_1366x722.png 424w, https://substackcdn.com/image/fetch/$s_!m2lw!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F31b069a8-36d4-4097-bcef-525005cbef4c_1366x722.png 848w, https://substackcdn.com/image/fetch/$s_!m2lw!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F31b069a8-36d4-4097-bcef-525005cbef4c_1366x722.png 1272w, https://substackcdn.com/image/fetch/$s_!m2lw!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F31b069a8-36d4-4097-bcef-525005cbef4c_1366x722.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!m2lw!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F31b069a8-36d4-4097-bcef-525005cbef4c_1366x722.png" width="1366" height="722" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/31b069a8-36d4-4097-bcef-525005cbef4c_1366x722.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:722,&quot;width&quot;:1366,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:76395,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://favourokoli1.substack.com/i/187865040?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F31b069a8-36d4-4097-bcef-525005cbef4c_1366x722.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!m2lw!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F31b069a8-36d4-4097-bcef-525005cbef4c_1366x722.png 424w, https://substackcdn.com/image/fetch/$s_!m2lw!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F31b069a8-36d4-4097-bcef-525005cbef4c_1366x722.png 848w, https://substackcdn.com/image/fetch/$s_!m2lw!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F31b069a8-36d4-4097-bcef-525005cbef4c_1366x722.png 1272w, https://substackcdn.com/image/fetch/$s_!m2lw!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F31b069a8-36d4-4097-bcef-525005cbef4c_1366x722.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>In the query shown in the image, we start by defining exactly what information we want to pull:</p><ul><li><p><strong>brand, model, year:</strong> These are the specific columns (headers) we want to see from the table. Instead of pulling everything, we are telling the database to only show us the make of the car, the specific model, and the year it was made.</p></li><li><p><strong>FROM usa_cars_datasets:</strong> This identifies the specific table where all this car data is stored.</p><div><hr></div></li></ul><h3>Using WHERE and BETWEEN</h3><p>To filter the data, we combine the <strong>WHERE</strong> clause with the <strong>BETWEEN</strong> operator.</p><ol><li><p><strong>WHERE clause:</strong> This acts as a filter. It tells the database, <em>don&#8217;t show me everything; only show me the rows that meet this specific condition.</em></p></li><li><p><strong>BETWEEN operator:</strong> This is used to select values within a given range. It is much faster and cleaner than writing multiple <em>greater than</em> or <em>less than</em> commands.</p></li></ol><p><strong>How it works:</strong> The database looks at the <strong>year</strong> column and grabs every car where the year is 2010, 2015, or anything in between. As you can see in the "Action Output" at the bottom of my image in the screenshot, this refined our list down to <strong>494 rows</strong>. It&#8217;s a simple way to isolate a specific era of cars without losing the <em>big picture</em> of the data.</p><p></p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://favourokoli1.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><div class="captioned-button-wrap" data-attrs="{&quot;url&quot;:&quot;https://favourokoli1.substack.com/p/filtering-data-ranges-with-the-between?utm_source=substack&utm_medium=email&utm_content=share&action=share&quot;,&quot;text&quot;:&quot;Share&quot;}" data-component-name="CaptionedButtonToDOM"><div class="preamble"><p class="cta-caption">Thanks for reading! This post is public so feel free to share it.</p></div><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://favourokoli1.substack.com/p/filtering-data-ranges-with-the-between?utm_source=substack&utm_medium=email&utm_content=share&action=share&quot;,&quot;text&quot;:&quot;Share&quot;}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://favourokoli1.substack.com/p/filtering-data-ranges-with-the-between?utm_source=substack&utm_medium=email&utm_content=share&action=share"><span>Share</span></a></p></div><p></p>]]></content:encoded></item><item><title><![CDATA[Importing Data and Running Your First Query]]></title><description><![CDATA[A hands-on look at using MySQL Workbench.]]></description><link>https://favourokoli1.substack.com/p/importing-data-and-running-your-first</link><guid isPermaLink="false">https://favourokoli1.substack.com/p/importing-data-and-running-your-first</guid><dc:creator><![CDATA[Favour Okoli]]></dc:creator><pubDate>Fri, 06 Feb 2026 16:40:19 GMT</pubDate><enclosure url="https://api.substack.com/feed/podcast/187096770/01936ab944eaad133766c79fa3a0c177.mp3" length="0" type="audio/mpeg"/><content:encoded><![CDATA[<p>In my last post, I defined the &#8220;building blocks&#8221; of a database. I talked about how a database is like a digital filing cabinet and a table is a specific list inside it.</p><p>But seeing is believing. Today, I am showing you how to actually put those concepts into practice  using a dataset I already have.</p><h5>What&#8217;s in this video:</h5><ul><li><p><strong>Importing Data</strong> : A walk through the table data import process, which allows you to take raw CSV(Comma-Separated Values) or JSON(JavaScript Object Notation) files and turn them into a structured table.</p></li><li><p><strong>The Workbench Interface</strong>: A quick look at the <strong>Local Instance</strong> of MySQL where all the magic happens.</p></li><li><p><strong>Running a Query</strong>: Watch me use the <strong>SELECT* </strong>command (where the asterisk acts as a &#8216;select all&#8217; shortcut) to pull every piece of data from the table instantly.</p></li></ul><p>As I mentioned before, SQL is about <strong>efficiency</strong>. It is the tool that allows you to stop guessing and start making decisions based on hard facts.</p><p><em><strong>Happy Querying!!!</strong></em></p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://favourokoli1.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><div class="captioned-button-wrap" data-attrs="{&quot;url&quot;:&quot;https://favourokoli1.substack.com/p/importing-data-and-running-your-first?utm_source=substack&utm_medium=email&utm_content=share&action=share&quot;,&quot;text&quot;:&quot;Share&quot;}" data-component-name="CaptionedButtonToDOM"><div class="preamble"><p class="cta-caption">Thanks for reading! This post is public so feel free to share it.</p></div><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://favourokoli1.substack.com/p/importing-data-and-running-your-first?utm_source=substack&utm_medium=email&utm_content=share&action=share&quot;,&quot;text&quot;:&quot;Share&quot;}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://favourokoli1.substack.com/p/importing-data-and-running-your-first?utm_source=substack&utm_medium=email&utm_content=share&action=share"><span>Share</span></a></p></div><p></p>]]></content:encoded></item><item><title><![CDATA[The "Secret Sauce" Behind Your Inbox: An Intro to SQL]]></title><description><![CDATA[Before we dive in, I have a quick question for you:]]></description><link>https://favourokoli1.substack.com/p/the-secret-sauce-behind-your-inbox</link><guid isPermaLink="false">https://favourokoli1.substack.com/p/the-secret-sauce-behind-your-inbox</guid><dc:creator><![CDATA[Favour Okoli]]></dc:creator><pubDate>Fri, 30 Jan 2026 16:40:21 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!mPXH!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffd2fa106-cf8a-4f2b-8ad9-f0f09c9a84af_622x622.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Before we dive in, I have a quick question for you:</p><div class="poll-embed" data-attrs="{&quot;id&quot;:441712}" data-component-name="PollToDOM"></div><h4>The Big Reveal</h4><p>It is not luck, and they are not eavesdropping. It is Data Analysis</p><p>Behind every &#8220;personalized&#8221; experience from your Netflix recommendations to that &#8220;We Miss You&#8221; coupon, is an analyst using a language called SQL to sift through millions of rows of data to find patterns.</p><p>Today, I am going to demystify it for you.</p><div><hr></div><h4>What exactly is SQL?</h4><p>Think of a company&#8217;s data like a giant, messy warehouse full of millions of boxes. You can not find anything just by walking around, and you certainly can not open every box by hand.</p><p>SQL (which stands for Structured Query Language and is pronounced &#8220;sequel&#8221;) is the highly trained retriever you send into that warehouse to bring back exactly what you asked for.</p><p>In the world of Data Analysis, we use SQL to ask the database questions. We call these questions <strong>Queries.</strong></p><h5>From &#8220;Human&#8221; to &#8220;SQL&#8221;</h5><p>To give you an idea of how simple it actually is, look at how you can translate a business question into SQL code: </p><p>The Human Question: <em>Who are the customers who have not bought anything in 30 days but have a birthday this month?</em></p><p>The SQL Translation: </p><p><em>SELECT email_address</em></p><p><em>FROM customers</em></p><p><em>WHERE last_purchase_date &gt; 30</em></p><p><em>AND birthday_month = &#8216;January&#8217;;</em></p><p>That is it! That tiny block of code is how a company knows to send you a &#8220;Happy Birthday!&#8221; coupon at the exact moment you are most likely to use it.</p><div><hr></div><h4>Why does this matter to you?</h4><p>You do not need to be a tech person to find value in this, SQL is the &#8220;secret sauce&#8221; for: </p><ul><li><p><strong>Trend Spotting</strong> : Finding out that your product sells better on rainy Tuesdays than sunny Saturdays.</p></li><li><p><strong>Problem Solving</strong> : Seeing exactly where customers get stuck in a checkout process so you can fix it.</p></li><li><p><strong>Efficiency</strong>: Doing in 2 seconds what would take a human 4 hours to do manually in a spreadsheet.</p></li></ul><div><hr></div><h4>Your SQL Starter Glossary</h4><p>Before I wrap up, here are few building blocks you will see every time you look at a database:</p><ul><li><p><strong>Database</strong>: The digital filing cabinet where all info is stored.</p></li><li><p><strong>Table</strong>: A specific list inside that cabinet (like &#8220;Orders&#8221; or &#8220;Products&#8221;).</p></li><li><p><strong>SELECT</strong>: The command that means <em>Show me&#8230;</em></p></li><li><p><strong>WHERE</strong>: The filter (like saying <em>only show me people in Chicago)</em></p></li></ul><p>SQL is the bridge between I think this is happening and I know this is happening. It is the tool that allows you to stop guessing and start making decisions based on facts.</p><p><strong>Happy Weekend!!</strong></p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://favourokoli1.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><div class="captioned-button-wrap" data-attrs="{&quot;url&quot;:&quot;https://favourokoli1.substack.com/p/the-secret-sauce-behind-your-inbox?utm_source=substack&utm_medium=email&utm_content=share&action=share&quot;,&quot;text&quot;:&quot;Share&quot;}" data-component-name="CaptionedButtonToDOM"><div class="preamble"><p class="cta-caption">Thanks for reading! This post is public so feel free to share it.</p></div><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://favourokoli1.substack.com/p/the-secret-sauce-behind-your-inbox?utm_source=substack&utm_medium=email&utm_content=share&action=share&quot;,&quot;text&quot;:&quot;Share&quot;}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://favourokoli1.substack.com/p/the-secret-sauce-behind-your-inbox?utm_source=substack&utm_medium=email&utm_content=share&action=share"><span>Share</span></a></p></div><p></p><p></p>]]></content:encoded></item><item><title><![CDATA[Data Cleaning Steps Across Tools]]></title><description><![CDATA[Learn the essential steps of cleaning data that works in any tool, no matter which platform you use]]></description><link>https://favourokoli1.substack.com/p/data-cleaning-steps-across-tools</link><guid isPermaLink="false">https://favourokoli1.substack.com/p/data-cleaning-steps-across-tools</guid><dc:creator><![CDATA[Favour Okoli]]></dc:creator><pubDate>Fri, 23 Jan 2026 16:40:27 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!DPVH!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7904b9ad-66a8-4e7e-8049-6b058eff59f5_1536x733.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><em>Happy Friday, Data Explorers! Welcome back! Today we will cover the remaining essential data cleaning steps in Power BI, Excel and SQL. </em></p><p>When working with data, the tools may change, but the <strong>cleaning logic stays the same. </strong>Take a look at the summarized table below </p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!DPVH!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7904b9ad-66a8-4e7e-8049-6b058eff59f5_1536x733.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!DPVH!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7904b9ad-66a8-4e7e-8049-6b058eff59f5_1536x733.jpeg 424w, https://substackcdn.com/image/fetch/$s_!DPVH!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7904b9ad-66a8-4e7e-8049-6b058eff59f5_1536x733.jpeg 848w, https://substackcdn.com/image/fetch/$s_!DPVH!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7904b9ad-66a8-4e7e-8049-6b058eff59f5_1536x733.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!DPVH!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7904b9ad-66a8-4e7e-8049-6b058eff59f5_1536x733.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!DPVH!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7904b9ad-66a8-4e7e-8049-6b058eff59f5_1536x733.jpeg" width="1456" height="695" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/7904b9ad-66a8-4e7e-8049-6b058eff59f5_1536x733.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:695,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:724729,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://favourokoli1.substack.com/i/185534088?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7904b9ad-66a8-4e7e-8049-6b058eff59f5_1536x733.jpeg&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!DPVH!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7904b9ad-66a8-4e7e-8049-6b058eff59f5_1536x733.jpeg 424w, https://substackcdn.com/image/fetch/$s_!DPVH!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7904b9ad-66a8-4e7e-8049-6b058eff59f5_1536x733.jpeg 848w, https://substackcdn.com/image/fetch/$s_!DPVH!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7904b9ad-66a8-4e7e-8049-6b058eff59f5_1536x733.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!DPVH!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7904b9ad-66a8-4e7e-8049-6b058eff59f5_1536x733.jpeg 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Whether you are using Power BI, Excel, or SQL, you will always encounter core data cleaning steps such as filtering rows, changing data types, handling nulls, and creating conditional logic.</p><div><hr></div><p>For example: </p><ol><li><p>In <strong>Power BI</strong>, filtering rows is done through the <em>Filter Rows</em> option in Power Query.</p></li><li><p>In <strong>Excel,</strong> the same task is handled using column filters.</p></li><li><p>In <strong>SQL,</strong> filtering is done using the <em>WHERE</em> clause</p><div><hr></div><p>The same pattern applies to changing data types, cleaning text, replacing values, and handling missing data. While each tool uses different buttons or syntax, the <strong>underlying principles are universal</strong></p></li></ol><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://favourokoli1.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><div class="captioned-button-wrap" data-attrs="{&quot;url&quot;:&quot;https://favourokoli1.substack.com/p/data-cleaning-steps-across-tools?utm_source=substack&utm_medium=email&utm_content=share&action=share&quot;,&quot;text&quot;:&quot;Share&quot;}" data-component-name="CaptionedButtonToDOM"><div class="preamble"><p class="cta-caption">Thanks for reading! This post is public so feel free to share it.</p></div><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://favourokoli1.substack.com/p/data-cleaning-steps-across-tools?utm_source=substack&utm_medium=email&utm_content=share&action=share&quot;,&quot;text&quot;:&quot;Share&quot;}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://favourokoli1.substack.com/p/data-cleaning-steps-across-tools?utm_source=substack&utm_medium=email&utm_content=share&action=share"><span>Share</span></a></p></div><p></p>]]></content:encoded></item><item><title><![CDATA[Data Cleaning Steps ]]></title><description><![CDATA[Streamline Your Workflow by Removing Duplicates and Splitting Columns for Sharper Insights]]></description><link>https://favourokoli1.substack.com/p/data-cleaning-steps</link><guid isPermaLink="false">https://favourokoli1.substack.com/p/data-cleaning-steps</guid><dc:creator><![CDATA[Favour Okoli]]></dc:creator><pubDate>Fri, 16 Jan 2026 17:51:37 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!4hVY!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0ee65b86-c0a8-4dda-9846-6bbfd88b1f0d_1366x358.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Last week, we took our first steps by navigating the Power Query interface and getting comfortable with the layout. Today, we are moving from &#8216;looking&#8217; to &#8216;doing&#8217;. To truly clean data, you need a repeatable process, and I am going to show you the two steps I will start with: <strong>Removing Duplicates</strong> and <strong>Splitting Columns.</strong></p><div><hr></div><h4>Data Transformation Processes </h4><p>Before you can analyze data, you must clean it. While these processes often happen in a unique order depending on the messiness of your dataset, here is a breakdown of the essential steps in no chronological order: </p><ul><li><p>Removing Duplicates : Ensuring each row of data is unique.</p></li><li><p>Splitting Columns: Breaking one column into multiple parts for better organization.</p></li><li><p>Filtering Rows: Removing data that isn&#8217;t relevant to your specific analysis.</p></li><li><p>Changing Data Types: Ensuring numbers are treated as numbers and dates as dates.</p></li><li><p>Trimming and Cleaning Text: Removing invisible spaces at the beginning or end of words (which can duplicates not to be recognized)</p></li><li><p>Replacing Values: Correcting specific errors or &#8216;N/A&#8217; entries.</p></li><li><p>Handling Nulls(Fill Up/Down): Closing gaps in your data where info is missing. </p></li><li><p>Formatting Text: Using Trim and Clean to standardize messy entries.</p></li><li><p>Merging Queries: Combining two different tables based on matching columns.</p></li><li><p>Unpivoting Columns: Turning wide data into long data for better reporting. </p></li><li><p>Conditional Columns: Creating &#8216;If/Then&#8217; logic to categorize and standardize your record.</p></li></ul><div><hr></div><h4>Today&#8217;s Focus: Removing Duplicates and Splitting Columns</h4><ol><li><p>Removing Duplicates: Before you do anything else, you must ensure your data is free from duplicate records.</p><p>~ How to do it : Select the column that should be unique, such as the <strong>transaction_id </strong> column as seen below </p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!4hVY!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0ee65b86-c0a8-4dda-9846-6bbfd88b1f0d_1366x358.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!4hVY!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0ee65b86-c0a8-4dda-9846-6bbfd88b1f0d_1366x358.png 424w, https://substackcdn.com/image/fetch/$s_!4hVY!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0ee65b86-c0a8-4dda-9846-6bbfd88b1f0d_1366x358.png 848w, https://substackcdn.com/image/fetch/$s_!4hVY!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0ee65b86-c0a8-4dda-9846-6bbfd88b1f0d_1366x358.png 1272w, https://substackcdn.com/image/fetch/$s_!4hVY!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0ee65b86-c0a8-4dda-9846-6bbfd88b1f0d_1366x358.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!4hVY!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0ee65b86-c0a8-4dda-9846-6bbfd88b1f0d_1366x358.png" width="1366" height="358" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/0ee65b86-c0a8-4dda-9846-6bbfd88b1f0d_1366x358.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:358,&quot;width&quot;:1366,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:73973,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://favourokoli1.substack.com/i/184782346?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0ee65b86-c0a8-4dda-9846-6bbfd88b1f0d_1366x358.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!4hVY!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0ee65b86-c0a8-4dda-9846-6bbfd88b1f0d_1366x358.png 424w, https://substackcdn.com/image/fetch/$s_!4hVY!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0ee65b86-c0a8-4dda-9846-6bbfd88b1f0d_1366x358.png 848w, https://substackcdn.com/image/fetch/$s_!4hVY!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0ee65b86-c0a8-4dda-9846-6bbfd88b1f0d_1366x358.png 1272w, https://substackcdn.com/image/fetch/$s_!4hVY!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0ee65b86-c0a8-4dda-9846-6bbfd88b1f0d_1366x358.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>~ Action: Right-click the column header and select <strong>Remove Duplicates.</strong></p><p>~ Reason for this: If <strong>transaction_id</strong> records appear twice, your total sales or quantity counts will be higher than they actually are.</p><div><hr></div></li><li><p>Splitting Columns: Look at the transaction_time column in the data below. It is cluttered with a placeholder date (12/31/1899). Since we already have a dedicated date column that is correct and not repeated over and over again like the one in the transaction_time column , it&#8217;s best to remove this from the dataset.</p><p></p><p>How to clean this column using a delimiter: A delimiter is just a divider (like a space or a comma). </p><p><br>~ Select Column : Click on the <strong>transaction_time</strong> header. </p><p></p><p>~ Transform Tab: Click the <strong>Transform</strong> tab in the top ribbon.</p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!HUiv!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F09acbffe-2525-46c1-845f-effdf9ab732e_1366x269.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!HUiv!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F09acbffe-2525-46c1-845f-effdf9ab732e_1366x269.png 424w, https://substackcdn.com/image/fetch/$s_!HUiv!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F09acbffe-2525-46c1-845f-effdf9ab732e_1366x269.png 848w, https://substackcdn.com/image/fetch/$s_!HUiv!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F09acbffe-2525-46c1-845f-effdf9ab732e_1366x269.png 1272w, https://substackcdn.com/image/fetch/$s_!HUiv!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F09acbffe-2525-46c1-845f-effdf9ab732e_1366x269.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!HUiv!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F09acbffe-2525-46c1-845f-effdf9ab732e_1366x269.png" width="1366" height="269" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/09acbffe-2525-46c1-845f-effdf9ab732e_1366x269.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:269,&quot;width&quot;:1366,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:59327,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://favourokoli1.substack.com/i/184782346?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F09acbffe-2525-46c1-845f-effdf9ab732e_1366x269.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!HUiv!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F09acbffe-2525-46c1-845f-effdf9ab732e_1366x269.png 424w, https://substackcdn.com/image/fetch/$s_!HUiv!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F09acbffe-2525-46c1-845f-effdf9ab732e_1366x269.png 848w, https://substackcdn.com/image/fetch/$s_!HUiv!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F09acbffe-2525-46c1-845f-effdf9ab732e_1366x269.png 1272w, https://substackcdn.com/image/fetch/$s_!HUiv!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F09acbffe-2525-46c1-845f-effdf9ab732e_1366x269.png 1456w" sizes="100vw" fetchpriority="high"></picture><div></div></div></a></figure></div><p>~ Split Column: Click the <strong>Split Column</strong> and select <strong>By Delimiter</strong>.</p><p></p><p>~ The Strategy : Choose <strong>Space</strong> as your delimiter and select <strong>Left-most delimiter</strong>.</p><p></p><p>~ Clean Up : Power Query peels the 12/31/1899 date into its own column. Right-click that column and hit <strong>Remove.</strong></p><p></p><p>~ Fix Data Type: Change the remaining time column to the <strong>Time</strong> data type to finalize the cleanup. </p><div><hr></div><p>Cleaning data might feel like the &#8216;boring&#8217; part of the job, but it is actually where the magic happens. By removing duplicates and splitting columns, we have moved a little bit from a messy data to a more structured dataset that can actually tell a story.</p><p><em>Once your data is clean, the analysis becomes effortless.</em></p><p></p><p><strong>See you in the next one!!</strong></p><p></p></li></ol><p></p><p></p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://favourokoli1.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[Navigating the Power Query Interface in Excel and Power BI 💻]]></title><description><![CDATA[Welcome back &#128522;&#128075;]]></description><link>https://favourokoli1.substack.com/p/navigating-the-power-query-interface</link><guid isPermaLink="false">https://favourokoli1.substack.com/p/navigating-the-power-query-interface</guid><dc:creator><![CDATA[Favour Okoli]]></dc:creator><pubDate>Fri, 09 Jan 2026 16:41:03 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!RHVi!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8a918fb8-725e-4dc2-9c23-d182857a6f73_1366x682.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Welcome back &#128522;&#128075;</p><p>In Part 1, I introduced Power Query and why it&#8217;s an essential tool for automating data cleaning and settled the common debate between power query and power pivot. </p><p>But before diving into transformations, it&#8217;s important to understand the Power Query Editor - where all your cleaning, shaping, and preparation work happens.</p><p>Opening Power Query</p><p><strong>In Excel:</strong></p><p>&#8226; Open your excel </p><p>&#8226; Click any cell inside your data </p><p>&#8226; Press Ctrl + T to convert it to a table(or go to Home  ~ Format as Table)</p><p>&#8226; With the table selected, go to the Data tab</p><p>&#8226; Click From Table/Range</p><p>This opens the Power Query Editor.</p><p>You can also open it from existing queries via Data  ~ Queries &amp; Connections ~ double-click a query.</p><p><strong>In Power BI:</strong></p><p>&#8226; Open Power BI Desktop.</p><p>&#8226; Click Get Data and select your source(From File - Excel, CSV, Folder </p><p>    ~ From Database </p><p>    ~ From Web) </p><p>&#8226; Click Transform Data instead of loading directly.</p><p>This opens the Power Query Editor.</p><p>You can also open it anytime via Home ~ Transform Data.</p><h2><strong>Power Query Editor Interface</strong></h2><p></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!RHVi!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8a918fb8-725e-4dc2-9c23-d182857a6f73_1366x682.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!RHVi!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8a918fb8-725e-4dc2-9c23-d182857a6f73_1366x682.png 424w, https://substackcdn.com/image/fetch/$s_!RHVi!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8a918fb8-725e-4dc2-9c23-d182857a6f73_1366x682.png 848w, https://substackcdn.com/image/fetch/$s_!RHVi!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8a918fb8-725e-4dc2-9c23-d182857a6f73_1366x682.png 1272w, https://substackcdn.com/image/fetch/$s_!RHVi!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8a918fb8-725e-4dc2-9c23-d182857a6f73_1366x682.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!RHVi!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8a918fb8-725e-4dc2-9c23-d182857a6f73_1366x682.png" width="1366" height="682" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/8a918fb8-725e-4dc2-9c23-d182857a6f73_1366x682.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:&quot;normal&quot;,&quot;height&quot;:682,&quot;width&quot;:1366,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:98018,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!RHVi!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8a918fb8-725e-4dc2-9c23-d182857a6f73_1366x682.png 424w, https://substackcdn.com/image/fetch/$s_!RHVi!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8a918fb8-725e-4dc2-9c23-d182857a6f73_1366x682.png 848w, https://substackcdn.com/image/fetch/$s_!RHVi!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8a918fb8-725e-4dc2-9c23-d182857a6f73_1366x682.png 1272w, https://substackcdn.com/image/fetch/$s_!RHVi!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8a918fb8-725e-4dc2-9c23-d182857a6f73_1366x682.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><p>The editor has five key areas:</p><p><strong>1. Ribbon (Top Menu)</strong></p><p>Contains the main commands you use to clean and transform data:</p><p>&#8226; Home: Remove rows, keep columns, merge or append queries</p><p>&#8226; Transform: Change column types, split columns, format data</p><p>&#8226; Add Column: Create new calculated columns</p><p>View: Show or hide formula bar, column quality, column distribution. </p><p><strong>2. Queries Pane (Left Side)</strong></p><p>Shows all queries (datasets) in your file. Each query represents a separate dataset and keeps track of all steps applied to it.</p><p><strong>3. Data Preview (Center)</strong></p><p>Displays the data for the selected query.</p><p>&#8226; You can sort and filter columns.</p><p>&#8226; Column headers show the data type (text, number, date).</p><p>&#8226; Nothing you do here affects the source data until you apply it.</p><p><strong>4. Formula Bar (Above the Data Preview)</strong></p><p>Displays the M code for the currently selected step.</p><p>&#8226; You do not need to write code to use Power Query.</p><p>&#8226; It shows exactly what Power Query is doing behind the scenes.</p><p><strong>5. Applied Steps Pane (Right Side)</strong></p><p>Lists each action applied to your query in order, such as:</p><p>&#8226; Changed Type</p><p>&#8226; Removed Columns</p><p>&#8226; Filtered Rows</p><p>&#8226; Split Column</p><p>Important:</p><p>&#8226; The Applied Steps pane does not store the final data.</p><p>&#8226; It stores the instructions (steps) Power Query will run on the source data.</p><p>When you click Refresh, Power Query:</p><p>&#8226; Reads the raw source data</p><p>&#8226; Applies all steps in order</p><p>&#8226; Produces the cleaned output</p><p>This ensures that your cleaning process is repeatable and consistent for new or updated data.</p><p>Now that you are familiar with the Power Query interface, you are ready to start transforming your data with confidence &#128524;.Comment below which part of the data transformation process you would like me to cover next, and feel free to share this with friends who are trying to get into the data space!</p><p></p><p></p>]]></content:encoded></item><item><title><![CDATA[New Year, Cleaner Data: Welcome to My Substack!]]></title><description><![CDATA[Happy New Year, Everyone!]]></description><link>https://favourokoli1.substack.com/p/new-year-cleaner-data-welcome-to</link><guid isPermaLink="false">https://favourokoli1.substack.com/p/new-year-cleaner-data-welcome-to</guid><dc:creator><![CDATA[Favour Okoli]]></dc:creator><pubDate>Thu, 01 Jan 2026 16:40:31 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!mPXH!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffd2fa106-cf8a-4f2b-8ad9-f0f09c9a84af_622x622.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Happy New Year, Everyone! &#129346;</p><p>&#8203;Welcome to my very first post! As we step into 2026, many of us are looking for ways to work smarter, not harder. If you deal with data in Excel or Power BI, you have probably heard of the "Power" siblings: Power Query and Power Pivot.</p><p>&#8203;Today, I want to simplify these tools so you can start your year with a clear data strategy.</p><p>The Engine Room: What is Power Query?</p><p>&#8203;Imagine you have a messy room. Power Query is the automated robot that goes in, picks up the trash, organizes the shelves, and makes everything spotless. </p><p>&#8203;In technical terms, it&#8217;s an <strong>ETL tool</strong> (Extract, Transform, Load). It allows you to:</p><p>&#8226; &#8203;<strong>Connect</strong> to data from various sources (Web, Folders, SQL). </p><p>&#8226; <strong>Clean</strong> it (remove nulls, fix date formats, split columns).</p><p><strong>&#8226; Automate</strong> it (next time the data changes, you just click "Refresh"). </p><p>The Architect: Power Query vs. Power Pivot</p><p>&#8203;A common question I get is: "If I have Power Query, why do I need Power Pivot?" Think of it this way:</p><p>&#8203;&#8226; Power Query is for PREPARING your data. It gives you a clean, flat table.</p><p>&#8226; Power Pivot is for ANALYZING your data. This is where you create relationships between different tables and write complex formulas (DAX).  </p><p>&#8203;The Golden Rule: You "clean" in Power Query so that you can "calculate" in Power Pivot.</p><h3><strong>What&#8217;s Next? </strong></h3><p>&#8203;This is just the beginning. I want to help you master these tools one step at a time.</p><p>&#8203;<strong>Mark your calendars:</strong> This time next week, I will be dropping <strong>Part 2</strong>, where we will dive deeper into the specific "Must-Know" transformations in Power Query to save you hours of manual work.</p><p>&#8203;Thank you for joining me on this journey. Let&#8217;s make 2026 the year we finally master our data!</p>]]></content:encoded></item></channel></rss>