<?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: TiffKaranja</title>
    <description>The latest articles on DEV Community by TiffKaranja (@tiffkaranja).</description>
    <link>https://dev.to/tiffkaranja</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3077706%2F24042ac1-323f-4f5c-97a0-a61bc3c8a837.png</url>
      <title>DEV Community: TiffKaranja</title>
      <link>https://dev.to/tiffkaranja</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tiffkaranja"/>
    <language>en</language>
    <item>
      <title>Getting Started with SQL: A Guide for Data Analysts</title>
      <dc:creator>TiffKaranja</dc:creator>
      <pubDate>Wed, 23 Apr 2025 13:01:33 +0000</pubDate>
      <link>https://dev.to/tiffkaranja/getting-started-with-sql-a-guide-for-data-analysts-57nd</link>
      <guid>https://dev.to/tiffkaranja/getting-started-with-sql-a-guide-for-data-analysts-57nd</guid>
      <description>&lt;p&gt;SQL (Structured Query Language) is often the first tool data analysts reach for — and for good reason. It’s powerful, widely used, and surprisingly readable once you get the hang of it.&lt;/p&gt;

&lt;p&gt;In this post, we’ll walk through the basics — not to overwhelm, but to show how you can start using SQL to actually do analysis.&lt;/p&gt;

&lt;p&gt;🧠 Why SQL Matters&lt;br&gt;
Before Python notebooks, dashboards, or machine learning models — there’s SQL.&lt;/p&gt;

&lt;p&gt;It helps answer questions like:&lt;/p&gt;

&lt;p&gt;What products sold the most last month?&lt;/p&gt;

&lt;p&gt;How many users signed up this week?&lt;/p&gt;

&lt;p&gt;What’s the average salary in each department?&lt;/p&gt;

&lt;p&gt;If you can ask it, SQL can probably answer it.&lt;/p&gt;

&lt;p&gt;🛠️ The Building Blocks&lt;br&gt;
Let’s walk through the essential commands.&lt;/p&gt;

&lt;p&gt;SELECT — Choosing what you want to see&lt;/p&gt;

&lt;p&gt;&lt;code&gt;SELECT name, age &lt;br&gt;
FROM employees;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;WHERE — Filtering the results&lt;/p&gt;

&lt;p&gt;&lt;code&gt;SELECT * &lt;br&gt;
FROM employees &lt;br&gt;
WHERE age &amp;gt; 30;&lt;/code&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Only returns employees older than 30.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;ORDER BY — Sorting your output&lt;/p&gt;

&lt;p&gt;&lt;code&gt;SELECT name, hire_date&lt;br&gt;
FROM employees&lt;br&gt;
ORDER BY hire_date DESC;&lt;/code&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Sorted from most recently hired to oldest.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;➕ Arithmetic in SQL&lt;br&gt;
SQL isn’t just about pulling data — you can also perform calculations right in your queries.&lt;/p&gt;

&lt;p&gt;Basic math&lt;br&gt;
&lt;code&gt;SELECT price, quantity, price * quantity AS total_cost&lt;br&gt;
FROM orders;&lt;/code&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;You can use +, -, *, and / just like in regular math.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Example with discounts&lt;br&gt;
&lt;code&gt;SELECT product_name, price, price - (price * 0.1) AS discounted_price&lt;br&gt;
FROM products;&lt;/code&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;This calculates a 10% discount on each product.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;💡 This post is about getting comfortable — opening the door to SQL without trying to sprint through it.&lt;/p&gt;

&lt;p&gt;⏸️ Stopping Here (for Now)&lt;br&gt;
No JOINs. No subqueries. We’ll save those for another day.&lt;/p&gt;

&lt;p&gt;More posts coming soon, including how to group data, calculate summaries, and explore real datasets.&lt;/p&gt;

&lt;p&gt;If you’re new to SQL (or remember how it felt to be), I’d love to hear from you — drop your thoughts or questions in the comments 💬&lt;/p&gt;

</description>
      <category>dataanalytics</category>
      <category>datascience</category>
      <category>sql</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
