<?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: Michael Muthama</title>
    <description>The latest articles on DEV Community by Michael Muthama (@myk3y).</description>
    <link>https://dev.to/myk3y</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%2F3819876%2F398819ab-2fa9-4851-b6cc-ed29fb9a7d75.png</url>
      <title>DEV Community: Michael Muthama</title>
      <link>https://dev.to/myk3y</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/myk3y"/>
    <language>en</language>
    <item>
      <title>Understanding SQL: DDL,DML,Filtering and DCL.</title>
      <dc:creator>Michael Muthama</dc:creator>
      <pubDate>Mon, 13 Apr 2026 06:55:12 +0000</pubDate>
      <link>https://dev.to/myk3y/understanding-sql-ddldmlfiltering-and-dcl-4j23</link>
      <guid>https://dev.to/myk3y/understanding-sql-ddldmlfiltering-and-dcl-4j23</guid>
      <description>&lt;p&gt;SQL is an abbreviation for Standard Query Language. It is a programming language that is used to manage and work with data in databases.&lt;/p&gt;

&lt;p&gt;Sql is a very important tool as it is used in all types of industries be it Banks, Hospitals, Schools, Mpesa. All these have databases that work behind the scenes&lt;br&gt;
DBMS stands for a Database Management System which is a software used to create, manage and interact with database e.g Postgresql which i use in my class projects. We also have others like Mysql, IBM DB2,Mongo db e.t.c, There are two types of DBMS&lt;/p&gt;

&lt;p&gt;Think of it this way; DDL builds the house, DML fills it with furniture.&lt;/p&gt;

&lt;p&gt;In my current project, the main commands I used were CREATE, INSERT, UPDATE, and DELETE and I will take you through the 'how' shortly.&lt;/p&gt;

&lt;p&gt;I used CREATE to create a schema called nairobi_academy, then CREATE TABLE to build three tables: students, subjects, and exam_results;&lt;/p&gt;

&lt;p&gt;I also used ALTER TABLE to modify tables after creation, that is; adding a phone_number column, renaming credits to credit_hours, and dropping phone_number when it was no longer needed. This taught me that SQL is flexible and you can always adjust a table's structure even after it has been created.&lt;/p&gt;

&lt;p&gt;Next, I used INSERT command, where I added 10 students, 10 subjects, and 10 exam results into the database -see example below;&lt;/p&gt;

&lt;p&gt;I then used UPDATE command and corrected data that had changed. For instance; updating Esther's city from Nakuru to Nairobi, and fixing incorrect marks from 49 to 59.&lt;/p&gt;

&lt;p&gt;In addition, I used DELETE command to remove a cancelled exam result from the table.&lt;/p&gt;

&lt;p&gt;NB: The most important lesson with UPDATE and DELETE is that, always use a WHERE clause, else every single row in the table gets affected and will be deleted.&lt;/p&gt;

&lt;p&gt;Another key lesson has been how to use SQL filtering functions e.g., WHERE, SEARCH, IN, NOT IN, COUNT &amp;amp; CASE WHEN.&lt;/p&gt;

&lt;p&gt;The WHERE clause filters rows based on conditions while CASE WHEN works like an if-else statement. It creates new labels based on conditions without changing the original.&lt;/p&gt;

&lt;p&gt;The biggest challenge this week was managing errors when running scripts multiple times. Some errors I encountered today was "relation already exists" and it kept appearing till it got frustrating. I learned that using IF NOT EXISTS and DROP SCHEMA CASCADE solves this cleanly.&lt;/p&gt;

&lt;p&gt;I also learned the hard way that column names matter. For instance; renaming credits to credit_hours after inserting data caused errors because the INSERT still referenced the old name. Order really matters in SQL! Do not give up when creating and querying data in SQL, remain calm, research on how to debug and you've got it!&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>tutorial</category>
      <category>devops</category>
    </item>
    <item>
      <title>“Power BI Essentials: Tools, Functions, and Real-World Applications”</title>
      <dc:creator>Michael Muthama</dc:creator>
      <pubDate>Sun, 29 Mar 2026 18:57:11 +0000</pubDate>
      <link>https://dev.to/myk3y/power-bi-essentials-tools-functions-and-real-world-applications-1l3c</link>
      <guid>https://dev.to/myk3y/power-bi-essentials-tools-functions-and-real-world-applications-1l3c</guid>
      <description>&lt;h2&gt;
  
  
  Understanding Power BI and Its Functions
&lt;/h2&gt;

&lt;p&gt;In today’s data-driven world, organizations rely heavily on tools that can transform raw data into meaningful insights. One of the most powerful tools for this purpose is Microsoft Power BI. It is a business intelligence (BI) platform that enables users to connect, analyze, visualize, and share data efficiently.&lt;/p&gt;




&lt;h2&gt;
  
  
  What is Power BI?
&lt;/h2&gt;

&lt;p&gt;Microsoft Power BI is a suite of tools developed by Microsoft that helps users create interactive dashboards and reports. It is widely used by businesses, analysts, and students to turn complex datasets into clear visual insights.&lt;/p&gt;

&lt;p&gt;Power BI consists of several components:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Power BI Desktop&lt;/strong&gt; – for creating reports&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Power BI Service&lt;/strong&gt; – for sharing and collaboration (cloud-based)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Power BI Mobile&lt;/strong&gt; – for accessing reports on mobile devices&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Key Features of Power BI
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Data Connectivity
&lt;/h3&gt;

&lt;p&gt;Power BI can connect to a wide range of data sources, including:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Excel files&lt;/li&gt;
&lt;li&gt;Databases (SQL Server, Oracle)&lt;/li&gt;
&lt;li&gt;Cloud services (Google Analytics, Azure)&lt;/li&gt;
&lt;li&gt;Web data sources&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This flexibility allows users to gather data from multiple places into one unified system.&lt;/p&gt;




&lt;h3&gt;
  
  
  2. Data Transformation (Power Query)
&lt;/h3&gt;

&lt;p&gt;Power BI includes a powerful data cleaning tool called &lt;strong&gt;Power Query&lt;/strong&gt;. It helps you:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Remove duplicates&lt;/li&gt;
&lt;li&gt;Handle missing values&lt;/li&gt;
&lt;li&gt;Filter and sort data&lt;/li&gt;
&lt;li&gt;Merge and reshape datasets&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This ensures your data is accurate and ready for analysis.&lt;/p&gt;




&lt;h3&gt;
  
  
  3. Data Modeling
&lt;/h3&gt;

&lt;p&gt;Data modeling allows you to define relationships between tables. Power BI uses:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Relationships (one-to-many, many-to-one)&lt;/li&gt;
&lt;li&gt;Calculated columns&lt;/li&gt;
&lt;li&gt;Measures&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This step is essential for building meaningful reports.&lt;/p&gt;




&lt;h2&gt;
  
  
  Important Functions in Power BI (DAX)
&lt;/h2&gt;

&lt;p&gt;Power BI uses a formula language called &lt;strong&gt;DAX (Data Analysis Expressions)&lt;/strong&gt; to perform calculations. Below are some commonly used functions:&lt;/p&gt;

&lt;h3&gt;
  
  
  1. SUM Function
&lt;/h3&gt;

&lt;p&gt;Adds up values in a column:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="n"&gt;Total&lt;/span&gt; &lt;span class="n"&gt;Sales&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;SUM&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;Sales&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;Amount&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h3&gt;
  
  
  2. AVERAGE Function
&lt;/h3&gt;

&lt;p&gt;Calculates the average of a column:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="n"&gt;Average&lt;/span&gt; &lt;span class="n"&gt;Sales&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;AVERAGE&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;Sales&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;Amount&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h3&gt;
  
  
  3. COUNT Function
&lt;/h3&gt;

&lt;p&gt;Counts the number of rows:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="n"&gt;Total&lt;/span&gt; &lt;span class="n"&gt;Orders&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;COUNT&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;Sales&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;OrderID&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h3&gt;
  
  
  4. IF Function
&lt;/h3&gt;

&lt;p&gt;Performs logical tests:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="n"&gt;Profit&lt;/span&gt; &lt;span class="n"&gt;Status&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;IF&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;Sales&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;Profit&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;"Profit"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;"Loss"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h3&gt;
  
  
  5. CALCULATE Function
&lt;/h3&gt;

&lt;p&gt;One of the most powerful DAX functions, used to modify filters:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="n"&gt;Total&lt;/span&gt; &lt;span class="n"&gt;Sales&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="mi"&gt;2025&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;CALCULATE&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;SUM&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;Sales&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;Amount&lt;/span&gt;&lt;span class="p"&gt;]),&lt;/span&gt; &lt;span class="nb"&gt;Year&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;2025&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h3&gt;
  
  
  6. FILTER Function
&lt;/h3&gt;

&lt;p&gt;Filters data based on conditions:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="n"&gt;High&lt;/span&gt; &lt;span class="n"&gt;Sales&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;FILTER&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;Sales&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;Sales&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;Amount&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;1000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h3&gt;
  
  
  7. RELATED Function
&lt;/h3&gt;

&lt;p&gt;Fetches related data from another table:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="n"&gt;Customer&lt;/span&gt; &lt;span class="n"&gt;Name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;RELATED&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;Customers&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;Name&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  Data Visualization in Power BI
&lt;/h2&gt;

&lt;p&gt;One of the standout features of Microsoft Power BI is its ability to create stunning visualizations such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Bar charts&lt;/li&gt;
&lt;li&gt;Line graphs&lt;/li&gt;
&lt;li&gt;Pie charts&lt;/li&gt;
&lt;li&gt;Maps&lt;/li&gt;
&lt;li&gt;Dashboards&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These visuals make it easier to identify trends, patterns, and insights.&lt;/p&gt;




&lt;h2&gt;
  
  
  Advantages of Power BI
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;User-friendly interface&lt;/strong&gt; – easy for beginners&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Real-time data updates&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Integration with other Microsoft tools like Excel&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Powerful data analysis capabilities&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Interactive dashboards&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Microsoft Power BI is a powerful and versatile tool for data analysis and visualization. By understanding its core features and functions—especially DAX—you can transform raw data into valuable insights that support better decision-making.&lt;/p&gt;

&lt;p&gt;Whether you are a student, business professional, or data analyst, learning Power BI is a valuable skill that can significantly enhance your ability to work with data.&lt;/p&gt;




</description>
    </item>
    <item>
      <title>“From Beginner to Expert: How to Effectively Use Microsoft Excel”</title>
      <dc:creator>Michael Muthama</dc:creator>
      <pubDate>Sun, 29 Mar 2026 17:40:55 +0000</pubDate>
      <link>https://dev.to/myk3y/from-beginner-to-expert-how-to-effectively-use-microsoft-excel-2h0j</link>
      <guid>https://dev.to/myk3y/from-beginner-to-expert-how-to-effectively-use-microsoft-excel-2h0j</guid>
      <description>&lt;p&gt;Introduction&lt;br&gt;
Microsoft Excel is one of the most powerful and widely used spreadsheet applications in the world. It is part of the Microsoft Office suite and is used for data entry, analysis, visualization, and automation. From students to financial analysts, Excel plays a crucial role in managing and interpreting data efficiently.&lt;/p&gt;

&lt;p&gt;What is Microsoft Excel?&lt;br&gt;
Microsoft Excel is a spreadsheet program that organizes data into rows and columns. Each intersection of a row and column is called a cell, where data can be stored, manipulated, and analyzed.&lt;/p&gt;

&lt;p&gt;Excel allows users to:&lt;/p&gt;

&lt;p&gt;Perform calculations&lt;br&gt;
Analyze large datasets&lt;br&gt;
Automate repetitive tasks&lt;/p&gt;

&lt;p&gt;Types of Excel Formulas&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Arithmetic Formulas
Used for basic mathematical operations such as addition, subtraction, multiplication, and division.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Examples:&lt;/p&gt;

&lt;p&gt;=A1 + B1     (Addition)&lt;br&gt;
=A1 - B1     (Subtraction)&lt;br&gt;
=A1 * B1     (Multiplication)&lt;br&gt;
=A1 / B1     (Division) &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Statistical Formulas
Used to analyze data.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Common functions:&lt;/p&gt;

&lt;p&gt;=AVERAGE(A1:A10) – Calculates the average&lt;br&gt;
=COUNT(A1:A10) – Counts numeric values&lt;br&gt;
=MAX(A1:A10) – Finds the highest value&lt;br&gt;
=MIN(A1:A10) – Finds the lowest value&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Logical Formulas
Used to make decisions based on conditions.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Example:&lt;/p&gt;

&lt;p&gt;=IF(A1&amp;gt;50, "Pass", "Fail") &lt;br&gt;
This checks if the value in A1 is greater than 50.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Text Formulas
Used to manipulate text.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Examples:&lt;/p&gt;

&lt;p&gt;=CONCAT(A1, " ", B1) – Combines text&lt;br&gt;
=LEFT(A1, 4) – Extracts first 4 characters&lt;br&gt;
=RIGHT(A1, 3) – Extracts last 3 characters&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Date and Time Formulas
Used to work with dates and times.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Examples:&lt;/p&gt;

&lt;p&gt;=TODAY() – Returns current date&lt;br&gt;
=NOW() – Returns current date and time&lt;br&gt;
=DATEDIF(A1, B1, "Y") – Calculates years between dates&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Lookup and Reference Formulas
Used to search for data.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Examples:&lt;/p&gt;

&lt;p&gt;=VLOOKUP(A2, A1:B10, 2, FALSE)&lt;br&gt;
=HLOOKUP(A2, A1:D5, 2, FALSE)&lt;br&gt;
=INDEX(A1:B10, 2, 1)&lt;br&gt;
=MATCH("John", A1:A10, 0)&lt;/p&gt;

&lt;p&gt;Benefits of Using Excel Formulas&lt;br&gt;
Accuracy: Reduces human error in calculations&lt;br&gt;
Efficiency: Saves time on repetitive tasks&lt;br&gt;
Automation: Automatically updates results when data changes&lt;br&gt;
Data Analysis: Helps uncover trends and insights&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
