<?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:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by The Data Desk on Medium]]></title>
        <description><![CDATA[Stories by The Data Desk on Medium]]></description>
        <link>https://medium.com/@ps5036177?source=rss-ac7af944238e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*63EsW-mjW4goYdG4n6r8NQ.png</url>
            <title>Stories by The Data Desk on Medium</title>
            <link>https://medium.com/@ps5036177?source=rss-ac7af944238e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 19:00:07 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ps5036177/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Stop Memorising SQL. Learn How to Think Like SQL in 2026.]]></title>
            <link>https://medium.com/@ps5036177/stop-memorising-sql-learn-how-to-think-like-sql-in-2026-5acc49f19709?source=rss-ac7af944238e------2</link>
            <guid isPermaLink="false">https://medium.com/p/5acc49f19709</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[The Data Desk]]></dc:creator>
            <pubDate>Thu, 06 Aug 2026 16:27:44 GMT</pubDate>
            <atom:updated>2026-08-06T16:27:44.259Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QHrPiuEkFPJWT1Ba" /><figcaption>Photo by <a href="https://unsplash.com/@sonofara?utm_source=medium&amp;utm_medium=referral">Jaffer Nizami</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>I remember the time when I first started learning SQL in my college days. We had a well-structured syllabus that covered the basics to advanced SQL, but it was all theory.</p><p>And when I memorised the syntax for true, the basic syntax for creating tables, altering tables and columns, updating and inserting data was good. It looked easy, and I thought this was the only SQL that would be needed to get into a real job.</p><p>But when I started solving problems across different platforms like LeetCode, HackerRank and then one realisation hit me that knowing only this much SQL will not help me to solve the real questions.</p><p>So SQL remains the same. But the problems changes. Like a backend developer might use SQL for storing and retrieving app data , while a data analyst would spend more time in querying, exploring, summarizing and analysing the large datasets.</p><p>And I started learning SQL for data Analytics.</p><p>So, before learning more SQL syntax, build a mental model for solving the real world questions.</p><p>You should ask these SIX questions before writing the SQL</p><h4>What should my final output look like?</h4><p>Like what columns should be there in the output screen.</p><p>How many rows are going to be, what each raw is going to represent.</p><p>This will give a clear picture of what the output the problem will have.</p><h4>Which table contains the information I need?</h4><p>It is very important to specify the tables because sometimes problems will require merging and joining tables, while others will not.</p><h4>Do I need every row, or do I need groups?</h4><p>This is where most people get confused because we sometimes overread any problems or read them, but do not get what it actually says.</p><p>Because there is a feature called ‘group by’ that is widely used in SQL, this question helps clarify when to use ‘group by’ and when not to.</p><h4>Should I filter anything?</h4><p>Asking questions like should I need orders from a specific month, or active users.</p><p>This is will help you to decide the use of “where” and “having” clause.</p><h4>Do I need to calculate something?</h4><p>If there are terms such as total, average, max, min, or count, then aggregate functions will be used.</p><h4>Should I sort the result?</h4><p>And in the last check if the problem asks for sorting the result in a particular order or not.</p><p>Like highest salary first.</p><p>Latest orders.</p><p>Or alphabetically order. And this is where the order by clause comes in.</p><blockquote>So here are the framework steps:</blockquote><p>Step 1<br><em>What should the final table look like?</em></p><p>↓</p><p>Step 2<br><em>Which table has the data?</em></p><p>↓</p><p>Step 3<br><em>Do I need every row?</em></p><p>OR</p><p><em>Do I need groups?</em></p><p>↓</p><p>Step 4<br><em>Should I filter rows?</em></p><p>↓</p><p>Step 5<br><em>Should I calculate something?</em></p><p>↓</p><p>Step 6<br><em>Should I sort?</em></p><p>↓</p><p><em>Write SQL.</em></p><blockquote>For example:</blockquote><p>Question: Find each customer’s total spending.</p><p>The show is thinking:</p><p><em>Final output?</em></p><p>Customer<br><em>Total Spending</em></p><p>↓</p><p><em>Data?</em></p><p>Orders</p><p>↓</p><p><em>Need groups?</em></p><p>Yes</p><p>↓</p><p><em>Need filter?</em></p><p>No</p><p>↓</p><p><em>Need calculation?</em></p><p>SUM()</p><p>↓</p><p><em>Need sorting?</em></p><p>Highest first</p><p>↓</p><p><em>Now write SQL.</em></p><p>Honestly, forgetting SQL syntax would not cost you much, but if you forget the thinking in SQL, this will cost you a lot of your time and effort. The syntax is not going anywhere, but the personal roadmaps and framework can go. So instead, focusing on just memorising the syntax and simple, default use of SQL clauses gives your brain some pressure to think in this way.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5acc49f19709" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>