<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Peggie Mishra</title>
    <description>The latest articles on DEV Community by Peggie Mishra (@peggie_7191).</description>
    <link>https://dev.to/peggie_7191</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3601612%2F6a7f9157-be51-42c9-9660-d70978aaabfc.jpg</url>
      <title>DEV Community: Peggie Mishra</title>
      <link>https://dev.to/peggie_7191</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/peggie_7191"/>
    <language>en</language>
    <item>
      <title>Two Shades of Mentoring: Cold &amp; Warm. Which oneTruly Works?</title>
      <dc:creator>Peggie Mishra</dc:creator>
      <pubDate>Fri, 07 Nov 2025 18:24:41 +0000</pubDate>
      <link>https://dev.to/peggie_7191/two-shades-of-mentoring-cold-warm-which-onetruly-works-50fo</link>
      <guid>https://dev.to/peggie_7191/two-shades-of-mentoring-cold-warm-which-onetruly-works-50fo</guid>
      <description>&lt;p&gt;Mentoring shapes minds and futures. But here’s the truth I’ve learned after more than three decades on this planet, including a decade in the corporate world: not all mentoring works.&lt;/p&gt;

&lt;p&gt;Over time, I’ve come to see mentoring in two distinct shades: &lt;strong&gt;&lt;em&gt;Cold and Warm.&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Cold Shade of Mentoring&lt;/strong&gt;&lt;br&gt;
Cold mentoring happens when a mentor shares knowledge just to get it over with i.e., to fulfil an obligation rather than make an impact. The interaction feels transactional, distant, and mechanical. Information is passed along, but nothing truly connects.&lt;/p&gt;

&lt;p&gt;The mentee listens, nods, maybe even takes notes. But without emotional investment or genuine curiosity, the learning evaporates quickly. No bond forms. The energy fades. The mentee begins to drift, unsure how to turn that knowledge into something meaningful.&lt;/p&gt;

&lt;p&gt;The result? Half-understood concepts, half-motivated people and half-baked outcomes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Warm Shade of Mentoring&lt;/strong&gt;&lt;br&gt;
Warm mentoring, on the other hand, is alive. It’s the kind where a mentor shares knowledge with intention not just to teach, but to ensure the lesson lands. The conversation becomes a bridge rather than a barrier. There’s trust, patience, and genuine human connection.&lt;/p&gt;

&lt;p&gt;In this environment, the protégé feels free to ask, explore, and challenge. There’s no fear of judgment, no hesitation to seek clarity. The relationship itself becomes a source of confidence and growth.&lt;/p&gt;

&lt;p&gt;And when that happens, learning doesn’t just transfer — it transforms. Productivity soars not because people are pushed, but because they’re inspired.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;My Observation&lt;/strong&gt;&lt;br&gt;
Most of us, unfortunately, have experienced the cold mentoring. The result is easy to spot: teams full of people juggling tasks with “half-knowledge,” rushing just to finish rather than to master.&lt;/p&gt;

&lt;p&gt;We forget that the real goal of mentoring isn’t merely to pass on information but to build capability, confidence, and curiosity.&lt;/p&gt;

&lt;p&gt;The success of any project or team depends on this one simple truth: knowledge shared with genuine care multiplies; knowledge shared without connection dissolves.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;In the End&lt;/strong&gt;&lt;br&gt;
Every mentor sets the temperature of their legacy.&lt;/p&gt;

&lt;p&gt;Are we sharing wisdom, or just words?&lt;/p&gt;

&lt;p&gt;Are we helping people grow, or merely helping them finish?&lt;/p&gt;

&lt;p&gt;The answer lies in the warmth we bring because mentoring, at its best, is not a transaction.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;It’s a transformation.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;“Become a warm mentor today, to create a legacy for tomorrow !”&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;

</description>
      <category>leadership</category>
      <category>mentorship</category>
      <category>growth</category>
      <category>productivity</category>
    </item>
    <item>
      <title>How to Handle NULLs in Snowflake: A Complete Guide!</title>
      <dc:creator>Peggie Mishra</dc:creator>
      <pubDate>Fri, 07 Nov 2025 16:06:24 +0000</pubDate>
      <link>https://dev.to/peggie_7191/how-to-handle-nulls-in-snowflake-a-complete-guide-1p6h</link>
      <guid>https://dev.to/peggie_7191/how-to-handle-nulls-in-snowflake-a-complete-guide-1p6h</guid>
      <description>&lt;p&gt;&lt;em&gt;Dear Readers,&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;NULL in data is like a weed, it can mess up your analysis and calculations, and ultimately bleed the value out of your analytics work. In this article, we’ll dive into what NULL is, why it exists, when it appears, and how to deal with it in Snowflake ?&lt;/p&gt;

&lt;p&gt;So, without further ado, let’s meet this culprit.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What NULL?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In SQL, NULL is basically the database equivalent of a shrug.It is a special marker that represents a missing or unknown value. It's not the same as an empty string ('') or the number zero (0). It simply means “I don’t know” or “there’s no value here at all.”&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why NULL Exists?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;NULL is essential because sometimes your data just doesn’t exist yet, or never will. NULL allows the database to acknowledge the gap without faking a value.&lt;/p&gt;

&lt;p&gt;Eg:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;A customer doesn’t have a middle name.&lt;/li&gt;
&lt;li&gt;A product doesn’t have a discount yet.&lt;/li&gt;
&lt;li&gt;A delivery date is unknown at the time of record insertion.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;When NULL Appears?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;NULL occurs anytime there is a lack of value from the user. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Common reasons include:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Optional fields with no provided value.&lt;/li&gt;
&lt;li&gt;Data not yet available (future delivery dates, pending approvals)&lt;/li&gt;
&lt;li&gt;Inapplicable values (someone’s “date of divorce” who never married)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;How to Deal with NULL in Snowflake?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Snowflake provides multiple functions and methods to deal with NULL dataset aka unknown data similar to other databases. I have listed some of them below:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Use IS NULL / IS NOT NULL to identify the NULL data.&lt;/li&gt;
&lt;li&gt;Use COALESCE(col, default) or IFNULL(col, default) to replace them in select , joins, aggregates etc&lt;/li&gt;
&lt;li&gt;Use explicit filter on WHERE clauses to include NULL rows as it can can drop NULL rows unexpectedly.&lt;/li&gt;
&lt;li&gt;Use NVL, CASE WHEN, or similar functions to handle them in calculations or strings.&lt;/li&gt;
&lt;li&gt;Comparisons with NULL return UNKNOWN in SQL’s three-valued logic. Use COALESCE or IS NULL checks to avoid surprises.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Eg:&lt;/p&gt;

&lt;p&gt;==Using NULL/NOT NULL &lt;/p&gt;

&lt;p&gt;-- Finds all employees without a manager&lt;br&gt;
SELECT name FROM employees WHERE manager_id IS NULL;&lt;/p&gt;

&lt;p&gt;-- Finds all employees with a manager&lt;br&gt;
SELECT name FROM employees WHERE manager_id IS NOT NULL;&lt;/p&gt;

&lt;p&gt;==Using COALESCE&lt;/p&gt;

&lt;p&gt;-- Calculates total compensation, treating a NULL bonus as 0&lt;/p&gt;

&lt;p&gt;SELECT salary + COALESCE(bonus, 0) AS total_compensation FROM employees&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Trouble NULL Causes:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Comparison Traps&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;NULL comparisons are a common pitfall because standard operators like = or != don’t work as expected. Any comparison involving NULL returns UNKNOWN, not TRUE or FALSE. Use IS NULL or IS NOT NULL to handle the traps.&lt;/p&gt;

&lt;p&gt;Eg:&lt;/p&gt;

&lt;p&gt;--Evaluates to UNKNOWN when &lt;code&gt;NULL = NULL&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;SELECT *&lt;br&gt;
FROM employees&lt;br&gt;
WHERE manager_id = NULL;&lt;/p&gt;

&lt;p&gt;-- The correct way to find employees with a NULL manager_id is:&lt;br&gt;
SELECT *&lt;br&gt;
FROM employees&lt;br&gt;
WHERE manager_id IS NULL;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Math &amp;amp; Concatenation Failures:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;NULL acts like a virus in arithmetic and string concatenation operations. Any operation involving NULL will result in NULL.&lt;/p&gt;

&lt;p&gt;Eg:&lt;/p&gt;

&lt;p&gt;--Return of NULL total+compensation when bonus is NULL:&lt;/p&gt;

&lt;p&gt;SELECT salary + bonus AS total_compensation&lt;br&gt;
FROM employees;&lt;/p&gt;

&lt;p&gt;--The correct way to add bonus is use COALESCE :&lt;/p&gt;

&lt;p&gt;SELECT salary + COALESCE(bonus, 0) AS total_compensation&lt;br&gt;
FROM employees;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Aggregate Surprises:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Aggregate functions like SUM() and AVG() ignore NULL values. This can lead to misleading results if you’re not aware of it.&lt;/p&gt;

&lt;p&gt;Eg:&lt;/p&gt;

&lt;p&gt;--Excludes NULL rows &lt;/p&gt;

&lt;p&gt;SELECT AVG(salary) AS avg_salary, SUM(salary) AS total_salary&lt;br&gt;
FROM employees;&lt;/p&gt;

&lt;p&gt;--Use COALESCE to treat NULL salaries as 0 to get more accurate company-wide average&lt;/p&gt;

&lt;p&gt;SELECT AVG(COALESCE(salary, 0)) FROM employees;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Join Issues:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;NULL values in join keys never match each other. If an employee has a NULL in manager_id, that row won’t link to any id in the employees table even if other employees also have NULL as manager_id.&lt;/p&gt;

&lt;p&gt;Use a LEFT JOIN + COALESCE to tackle the NULL issue.In following demonstrated way, you keep all employees in the output, and NULL managers are clearly labeled without risking false matches.&lt;/p&gt;

&lt;p&gt;Eg:&lt;/p&gt;

&lt;p&gt;--This INNER JOIN excludes employees with no manager_id&lt;/p&gt;

&lt;p&gt;SELECT &lt;br&gt;
       E.name AS employee,&lt;br&gt;
       M.name AS manager&lt;br&gt;
FROM employees AS E&lt;br&gt;
INNER JOIN &lt;br&gt;
employees AS M &lt;br&gt;
ON E.manager_id = M.id;&lt;/p&gt;

&lt;p&gt;--Use COALESCE to include employees without a manager&lt;/p&gt;

&lt;p&gt;SELECT &lt;br&gt;
  E.name AS employee,&lt;br&gt;
  COALESCE(M.name, 'No Manager') AS manager&lt;br&gt;
FROM employees E&lt;br&gt;
LEFT JOIN employees M &lt;br&gt;
  ON E.manager_id = M.id;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5.Logic Surprises&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In SQL’s three-valued logic (TRUE, FALSE, UNKNOWN), an UNKNOWN result in a WHERE clause acts like FALSE and discards the row. However, UNKNOWN can have different effects in other clauses such as CASE.&lt;/p&gt;

&lt;p&gt;Eg:&lt;/p&gt;

&lt;p&gt;--Logic Mishandling for NULL data.&lt;/p&gt;

&lt;p&gt;SELECT&lt;br&gt;
  CASE&lt;br&gt;
    WHEN bonus &amp;gt; 10000 THEN 'High Bonus'&lt;br&gt;
    WHEN bonus &amp;gt; 5000 THEN 'Mid Bonus'&lt;br&gt;
    ELSE 'Low or No Bonus'&lt;br&gt;
  END AS bonus_category&lt;br&gt;
FROM employees;&lt;/p&gt;

&lt;p&gt;-- Explicitly checks for NULL first&lt;/p&gt;

&lt;p&gt;SELECT&lt;br&gt;
  CASE&lt;br&gt;
    WHEN bonus IS NULL THEN 'No Bonus'&lt;br&gt;
    WHEN bonus &amp;gt; 10000 THEN 'High Bonus'&lt;br&gt;
    WHEN bonus &amp;gt; 5000 THEN 'Mid Bonus'&lt;br&gt;
    ELSE 'Low Bonus'&lt;br&gt;
  END AS bonus_category&lt;br&gt;
FROM employees;&lt;br&gt;
Closing thoughts,&lt;/p&gt;

&lt;p&gt;NULLs aren’t a bug, they’re part of SQL’s design.NULL is tricky. The safest approach is to scan your dataset for every attribute that could be NULL, then apply handling strategies suited to your business context. In Snowflake, a few well-placed COALESCE, IS NULL, and CASE statements can save you from major data quality headaches.&lt;/p&gt;

&lt;p&gt;Hope you enjoyed the article! If you like my writing, feel free to connect with me on Linkedin and follow for more such interesting reads.&lt;/p&gt;

</description>
      <category>datascience</category>
      <category>snowflake</category>
      <category>data</category>
      <category>sql</category>
    </item>
  </channel>
</rss>
