<?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>Forem: Jean</title>
    <description>The latest articles on Forem by Jean (@kahuhojean).</description>
    <link>https://forem.com/kahuhojean</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%2F3818268%2F286dae8b-d3e2-4c88-aa62-0ee49a1788cb.jpg</url>
      <title>Forem: Jean</title>
      <link>https://forem.com/kahuhojean</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/kahuhojean"/>
    <language>en</language>
    <item>
      <title>Introduction to SQL : DDL, DML, Commands, Filtering and Case When</title>
      <dc:creator>Jean</dc:creator>
      <pubDate>Sun, 12 Apr 2026 18:58:45 +0000</pubDate>
      <link>https://forem.com/kahuhojean/introduction-to-sql-ddl-dml-commands-filtering-and-case-when-2833</link>
      <guid>https://forem.com/kahuhojean/introduction-to-sql-ddl-dml-commands-filtering-and-case-when-2833</guid>
      <description>&lt;h2&gt;
  
  
  &lt;em&gt;DDL AND DML&lt;/em&gt;
&lt;/h2&gt;

&lt;p&gt;DDL (Data Definition Language)&lt;br&gt;
This is how we define and shape our data and includes commands such as;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;create &lt;/li&gt;
&lt;li&gt;alter&lt;/li&gt;
&lt;li&gt;drop&lt;/li&gt;
&lt;li&gt;truncate&lt;/li&gt;
&lt;li&gt;rename&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;DML (Data Manipulation Language)&lt;br&gt;
This is used to modify our data using commands such as;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;insert&lt;/li&gt;
&lt;li&gt;update&lt;/li&gt;
&lt;li&gt;delete&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The difference between DDL and DML is that DDL focuses on the structure of the database and affects tables and columns while DML focuses on data in the database and affects records in the tables.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to use commands in SQL (create, insert, update and delete)
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Create&lt;/strong&gt;&lt;br&gt;
 The &lt;em&gt;create&lt;/em&gt; command can be used to create a new schema or creating a table within your schema. &lt;br&gt;
 The syntax used for creating a new schema is &lt;em&gt;create schema nairobi_academy;&lt;/em&gt; where nairobi_academy is the name of the schema.&lt;br&gt;
 The syntax used for creating a table is &lt;em&gt;create table students&lt;/em&gt; where students is the column name.&lt;br&gt;
To run a querry, first ensure that the querry end in a semi colon then press CTRL ENTER on your keyboard or use the first orange arrow on the top left of your &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0g055q0ceczu7r3valbu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0g055q0ceczu7r3valbu.png" alt="Create image" width="800" height="533"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Insert&lt;/strong&gt;&lt;br&gt;
The &lt;em&gt;insert&lt;/em&gt; command is used to put information into the tables created and the syntax used is &lt;em&gt;insert into students()&lt;/em&gt; where students is the name of the table. &lt;/p&gt;

&lt;p&gt;INSERT INTO students (student_id, first_name, last_name, gender, date_of_birth, class, city)&lt;br&gt;
VALUES&lt;br&gt;
(1, 'User_First_1', 'User_Last_1', 'F', '2008-01-01', 'Level 1', 'City_A'),&lt;br&gt;
(2, 'User_First_2', 'User_Last_2', 'M', '2007-01-01', 'Level 2', 'City_B'),&lt;br&gt;
(3, 'User_First_3', 'User_Last_3', 'F', '2009-01-01', 'Level 1', 'City_C'),&lt;br&gt;
(4, 'User_First_4', 'User_Last_4', 'M', '2008-01-01', 'Level 3', 'City_D');&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt;&lt;br&gt;
 This is used to modify esisting records in a database table.&lt;br&gt;
 Syntax used for this command is &lt;em&gt;update&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftwn0cn1wt77aib3u36sg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftwn0cn1wt77aib3u36sg.png" alt="Update command" width="800" height="108"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Delete&lt;/strong&gt;&lt;br&gt;
This is used to remove existing records from a table and the syntax used fot this command is *DELETE FROM table_name WHERE condition;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fh7uejemdwq7mjtiq3d9d.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fh7uejemdwq7mjtiq3d9d.png" alt="Delete command" width="783" height="57"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Filtering using WHERE
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmyp2hv767k3ybuowcb44.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmyp2hv767k3ybuowcb44.png" alt="Filtering command" width="781" height="116"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;When filtering using where, operators such as =, &amp;gt;, between, in and like can be used in that;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;= - equal to, it can be used for text and numerics&lt;/li&gt;
&lt;li&gt;&amp;gt; and &amp;lt; - greater than and less than respectively, usually used with      numerics&lt;/li&gt;
&lt;li&gt;Between - filters values within a specified range (inclusive)&lt;/li&gt;
&lt;li&gt;In -  it provides a more concise, readable, and often more efficient way to filter a column instead of using multiple OR conditions in a WHERE CLAUSE.&lt;/li&gt;
&lt;li&gt;Like - uses wildcards to find partial matches&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Transforming data using CASE WHEN
&lt;/h2&gt;

&lt;p&gt;It transforms data into categorical groups making it easier for analysis and reporting.&lt;br&gt;
The syntax used is; &lt;br&gt;
 select column_name1, &lt;br&gt;
   CASE&lt;br&gt;
       WHEN condition1 THEN 'result1'&lt;br&gt;
       WHEN condition2 THEN 'result2'&lt;br&gt;
     END AS new_column_name&lt;br&gt;
   FROM table_name;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffy3jrn6i7if1diwpvabf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffy3jrn6i7if1diwpvabf.png" alt="Case when image" width="761" height="260"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Challenges faced while working with SQL
&lt;/h2&gt;

&lt;p&gt;Some of the challenges I faced while working with SQL during this first week includes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Debugging errors - SQL error messages are sometimes unclear making it hard to identify what went wrong while performing a query.&lt;/li&gt;
&lt;li&gt;Remembering how to use different commands and the syntax can be tricky at first.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>beginners</category>
      <category>react</category>
      <category>database</category>
      <category>learning</category>
    </item>
    <item>
      <title>Understanding Data Modelling in Power BI: Joins, Relationships and Schemas Explained.</title>
      <dc:creator>Jean</dc:creator>
      <pubDate>Mon, 30 Mar 2026 20:00:29 +0000</pubDate>
      <link>https://forem.com/kahuhojean/understanding-data-modelling-in-power-bi-joins-relationships-and-schemas-explained-641</link>
      <guid>https://forem.com/kahuhojean/understanding-data-modelling-in-power-bi-joins-relationships-and-schemas-explained-641</guid>
      <description>&lt;h2&gt;
  
  
  DATA MODELLING
&lt;/h2&gt;

&lt;p&gt;Data modelling in Power BI Desktop is the process of organizing and structuring data from multiple sources so that it can be analyzed effectively. In Power BI this involves connecting tables, defining how they relate and making them good enough for reporting.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Joins in Power BI
&lt;/h2&gt;

&lt;p&gt;Joins are used to combine data from different tables into one table based on a common column.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Types of Joins&lt;/em&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Inner Join - This returns only matching records.&lt;/li&gt;
&lt;li&gt;Left Join - This returns all records from the left table together with matches.&lt;/li&gt;
&lt;li&gt;Right Join - It returns all records from the right table together with matches.&lt;/li&gt;
&lt;li&gt;Full Outer Join - It returns all records from all tables.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvpuclz3ald20t1kdwcxx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvpuclz3ald20t1kdwcxx.png" alt="Images of types of Joins" width="800" height="677"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example&lt;/strong&gt;&lt;br&gt;
If you have a &lt;em&gt;Customer table&lt;/em&gt; and an &lt;em&gt;Orders table&lt;/em&gt;, you can join them using &lt;em&gt;Customer ID&lt;/em&gt; to see which customer made which order;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;CustomerID&lt;/th&gt;
&lt;th&gt;Name&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;John&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;Mary&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;CustomerID&lt;/th&gt;
&lt;th&gt;OrderAmount&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;500&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;300&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;200&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Result Table
&lt;/h2&gt;

&lt;p&gt;CustomerID | Name | Amount&lt;br&gt;
1          | John | 500&lt;br&gt;
2          | Mary | 300&lt;/p&gt;

&lt;h2&gt;
  
  
  2.  Relationships in Power BI
&lt;/h2&gt;

&lt;p&gt;Relationships allow tables to remain separated but connected in the data model. They define how tables interact with each other inside Power BI's data model.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Types of relationships&lt;/em&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;One-to-Many(1:M) - This exists when one record in Table 1 is related to many records in Table 2.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqvjhxg0m7k1eqnnjr4ss.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqvjhxg0m7k1eqnnjr4ss.gif" alt="One :Many relationship " width="300" height="198"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Many-to-Many(M:M) - This occurs when multiple records in Table 1 relates to many records in Table 2.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;One-to-One(1:1) - This relationship exists when each record in Table 1 matches exactly one record in Table 2.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F42a6vygjwp8ek26sb4kn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F42a6vygjwp8ek26sb4kn.png" alt="One : One relationship" width="363" height="208"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Schemas in Power BI
&lt;/h2&gt;

&lt;p&gt;A schema defines the overall structure of how tables are arranged and connected.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Types of schemas&lt;/em&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Star schema
This consists of one central fact table which is surrounded by multiple dimension tables.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fj9jip5e53to0khnos6f7.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fj9jip5e53to0khnos6f7.webp" alt="Star schema diagram" width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Snowflake schema
This is an extension of the star schema where dimension tables are further split into smaller related tables.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffm1lm1un0xon66dqaebo.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffm1lm1un0xon66dqaebo.webp" alt="Snowflake schema diagram" width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>datascience</category>
    </item>
    <item>
      <title>How Excel is Used in Real-World Data Analysis.</title>
      <dc:creator>Jean</dc:creator>
      <pubDate>Sun, 29 Mar 2026 18:17:49 +0000</pubDate>
      <link>https://forem.com/kahuhojean/how-excel-is-used-in-real-world-data-analysis-5hnk</link>
      <guid>https://forem.com/kahuhojean/how-excel-is-used-in-real-world-data-analysis-5hnk</guid>
      <description>&lt;h2&gt;
  
  
  What is Excel?
&lt;/h2&gt;

&lt;p&gt;Excel is a spreadsheet software developed by Microsoft that allows you to collect, analyze, calculate and visualize data efficiently. It is also a powerful tool used for personal as well as professional data management.&lt;/p&gt;

&lt;h2&gt;
  
  
  Features of Excel.
&lt;/h2&gt;

&lt;p&gt;Excel has many features which can be found in the ribbon at the top of an Excel worksheet as shown below:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fna2zxnldevo7jwsbxrzp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fna2zxnldevo7jwsbxrzp.png" alt=" " width="800" height="90"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuvgw31pksyt590nwqvf4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuvgw31pksyt590nwqvf4.png" alt=" " width="800" height="89"&gt;&lt;/a&gt;&lt;br&gt;
Excel as many features which are used together in data cleaning and preparation, data enrichment and data analysis enabling data analysts to answer the question, "What happened?" Some of these features include functions such as aggregate and logical functions. Other functions include pivot tables, slicers and charts. Excel enables data cleaning and preparation in that it enables users to take care of errors such as duplicate data using tools such as "Remove duplicates".&lt;/p&gt;

&lt;p&gt;Formulas and functions in excel such "SUM", "AVERAGE" allows users to perform calculations quickly and accurately without having to worry about not including some values as one would normally while using a calculator. Logical functions like =IF() enables excel users in schools for example, to know whether a student is an "Excellent performer", "Good performer", "Average performer" or a "Poor performer" enabling one to do analysis for students in a schools easily and swiftly. &lt;/p&gt;

&lt;p&gt;Data visualization is also enabled using excel using charts such as pie charts, line charts, bar graphs and scatter plots to transform data into visual representation that are easier to understand and summarize important data in a large dataset. &lt;br&gt;
These charts can be used to analyze trends and patterns enabling industries to make good decisions.&lt;/p&gt;

&lt;p&gt;These charts with the help of slicers and KPIs can be used to create a dashboard which enables analysts for example to report and share their insights.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where is excel used.
&lt;/h2&gt;

&lt;p&gt;Excel is used in industries such as education, business, healthcare and for scientific research enabling such industries in decision making and allowing them to analyze their data to determine whether there are any loses made and where improvement needs to be done in different areas.&lt;/p&gt;

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