<?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: Mark Glemba</title>
    <description>The latest articles on DEV Community by Mark Glemba (@mark_glemba_962f6bc8a12dd).</description>
    <link>https://dev.to/mark_glemba_962f6bc8a12dd</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%2F3851972%2Faa71fd54-fff1-4c78-87fc-fdf71f8dd473.jpg</url>
      <title>DEV Community: Mark Glemba</title>
      <link>https://dev.to/mark_glemba_962f6bc8a12dd</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mark_glemba_962f6bc8a12dd"/>
    <language>en</language>
    <item>
      <title>Understanding DDL, DML, and Key SQL Concepts</title>
      <dc:creator>Mark Glemba</dc:creator>
      <pubDate>Tue, 14 Apr 2026 07:11:57 +0000</pubDate>
      <link>https://dev.to/mark_glemba_962f6bc8a12dd/understanding-ddl-dml-and-key-sql-concepts-omg</link>
      <guid>https://dev.to/mark_glemba_962f6bc8a12dd/understanding-ddl-dml-and-key-sql-concepts-omg</guid>
      <description>&lt;p&gt;&lt;strong&gt;Introduction&lt;/strong&gt;&lt;br&gt;
Structured Query Language (SQL) is essential for managing and manipulating data in relational databases. In this article, we explore two important categories of SQL commands—Data Definition Language (DDL) and Data Manipulation Language (DML)—along with practical operations such as CREATE, INSERT, UPDATE, DELETE, filtering with WHERE, and the use of CASE WHEN for data transformation.&lt;/p&gt;




&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;What DDL and DML Are (and Their Differences)&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Data Definition Language (DDL) refers to SQL commands used to define and manage the structure of a database. These commands deal with creating, modifying, and deleting database objects such as tables.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Common DDL commands include&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;CREATE&lt;/strong&gt; – used to create new tables or databases&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;ALTER&lt;/strong&gt; – used to modify existing structures&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;DROP&lt;/strong&gt;– used to delete tables or databases&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For example, using "CREATE TABLE" allows you to define columns, data types, and constraints for storing data.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Data Manipulation Language (DML)&lt;/strong&gt;, on the other hand, is used to manage the data within those structures. It focuses on inserting, updating, retrieving, and deleting records.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Common DML commands include:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;INSERT&lt;/strong&gt; – adds new records&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;UPDATE&lt;/strong&gt;– modifies existing data&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;DELETE&lt;/strong&gt; – removes records&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SELECT&lt;/strong&gt;– retrieves data&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Key Difference:&lt;br&gt;
DDL deals with the structure of the database, while DML deals with the data inside the database.&lt;/p&gt;




&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Using CREATE, INSERT, UPDATE, and DELETE&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;In a typical database assignment, these commands are used as follows:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;CREATE&lt;/strong&gt;: I used this command to define tables such as students, subjects, or exam results. It involved specifying column names, data types (e.g., INTEGER, VARCHAR), and primary keys.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;INSERT&lt;/strong&gt;: This command was used to add records into the tables. For example, inserting student names, subject details, and exam scores into the respective tables.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;UPDATE&lt;/strong&gt;: I used UPDATE to modify existing records. For instance, correcting a student’s score or updating a subject name.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;DELETE&lt;/strong&gt;: This command helped remove unwanted or incorrect records from the database, such as deleting a student entry or clearing outdated data.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These commands are fundamental for maintaining accurate and up-to-date data in any database system.&lt;/p&gt;




&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Filtering Data with WHERE&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The WHERE clause is used in SQL to filter records based on specific conditions. It helps retrieve only the data that meets certain criteria.&lt;/p&gt;

&lt;p&gt;Some commonly used operators include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;= (Equal to)&lt;/strong&gt;: Selects records that match a specific value&lt;br&gt;
Example: "WHERE score = 80"&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;&amp;gt; (Greater than)&lt;/strong&gt;: Selects values greater than a given number&lt;br&gt;
Example: "WHERE score &amp;gt; 70"&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;BETWEEN&lt;/strong&gt;: Filters values within a range&lt;br&gt;
Example: "WHERE score BETWEEN 50 AND 90"&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;IN&lt;/strong&gt;: Matches values within a list&lt;br&gt;
Example: "WHERE subject IN ('Math', 'Science')"&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;LIKE&lt;/strong&gt;: Used for pattern matching&lt;br&gt;
Example: "WHERE name LIKE 'J%'" (names starting with J)&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The WHERE clause is powerful because it allows precise data retrieval, making queries more meaningful and efficient.&lt;/p&gt;




&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;How CASE WHEN Helps in Transforming Data&lt;/strong&gt;
The CASE WHEN statement in SQL is used to perform conditional logic within queries. It allows you to transform data by assigning values based on conditions.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For example, you can categorize student performance:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;If score ≥ 70 → “Pass”&lt;/li&gt;
&lt;li&gt;If score &amp;lt; 70 → “Fail”&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This helps in:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Creating calculated columns&lt;/li&gt;
&lt;li&gt;Categorizing or grouping data&lt;/li&gt;
&lt;li&gt;Improving readability of query results&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;CASE WHEN is especially useful in reports, where raw data needs to be interpreted into meaningful insights.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Conclusion&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Understanding DDL and DML is crucial for working with databases effectively. While DDL defines the structure of the database, DML allows you to interact with the data itself. Commands like CREATE, INSERT, UPDATE, and DELETE form the backbone of database operations. Additionally, tools like the WHERE clause and CASE WHEN statement enhance your ability to filter and transform data, making SQL a powerful language for data management and analysis.&lt;/p&gt;

</description>
      <category>datascience</category>
      <category>ai</category>
    </item>
    <item>
      <title>HOW TO PUBLISH A POWER BI REPORT AND EMBED IT INTO A WEBSITE</title>
      <dc:creator>Mark Glemba</dc:creator>
      <pubDate>Mon, 06 Apr 2026 14:10:43 +0000</pubDate>
      <link>https://dev.to/mark_glemba_962f6bc8a12dd/how-to-publish-a-power-bi-report-and-embed-it-into-a-website-3gcc</link>
      <guid>https://dev.to/mark_glemba_962f6bc8a12dd/how-to-publish-a-power-bi-report-and-embed-it-into-a-website-3gcc</guid>
      <description>&lt;p&gt;&lt;strong&gt;INTRODUCTION&lt;/strong&gt;&lt;br&gt;
Power BI is an analytics tool developed by Microsoft that lets a user visualize and share insights on certain data. Power BI is also used transform and clean data using Power Query Editor. Data transformation occurs through; shaping data by filtering, sorting and grouping, adding columns and changing data types through conversion to; numeric, text etc. Data cleaning is done through; handling blanks, standardizing and removing errors.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;PUBLISHING PROCESS IN POWER BI&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Create a workspace&lt;/strong&gt;
A workspace is like a folder where one stores reports, dashboards and datasets.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;. Go to [&lt;a href="https://app.powerbi.com/" rel="noopener noreferrer"&gt;https://app.powerbi.com/&lt;/a&gt;]&lt;br&gt;
. Sign into your account&lt;br&gt;
. Once your logged in, on the left far side click on workspaces&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%2Fh0wexji1b99t2wcz77sr.jpeg" 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%2Fh0wexji1b99t2wcz77sr.jpeg" alt=" " width="800" height="312"&gt;&lt;/a&gt;&lt;br&gt;
. Click on; + New workspace&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%2Fu0uonbpc9y9u7d4mprhb.jpeg" 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%2Fu0uonbpc9y9u7d4mprhb.jpeg" alt=" " width="800" height="248"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;2 .&lt;strong&gt;Uploading and publishing&lt;/strong&gt;&lt;br&gt;
. In the power bi desktop in the home page click on publish on the far right.&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%2F0g0mm33clmyhmpeuqpor.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%2F0g0mm33clmyhmpeuqpor.png" alt=" " width="800" height="107"&gt;&lt;/a&gt;&lt;br&gt;
. Select your workspace where the report will be uploaded&lt;br&gt;
. Once uploaded the dataset will appear on your workspace.&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%2Fxeibqz93wystqevtpbkg.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%2Fxeibqz93wystqevtpbkg.png" alt=" " width="714" height="417"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Generating embedding code&lt;/strong&gt;
. Open the report you want embedded
. Click on File ~~~~ Embed report
. Choose embedding option; either Public (Publish to Web), OR Secure Embed; which requires log in and is more secure.
. After clicking on Publish to web, Power BI will generate an embed link + iframe code.&lt;/li&gt;
&lt;/ol&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%2Fnqtbvaswep896vx5pz9r.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%2Fnqtbvaswep896vx5pz9r.png" alt=" " width="540" height="402"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;4.&lt;strong&gt;Embedding code into website&lt;/strong&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%2Fgachdvgtcvtotj2w7qum.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%2Fgachdvgtcvtotj2w7qum.png" alt=" " width="704" height="175"&gt;&lt;/a&gt;&lt;br&gt;
. Copy entire code&lt;br&gt;
. Open your website HTML file&lt;br&gt;
. Paste the iframe code where you want your report to appear&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%2F9fbbn0xir27ct4lcl17r.jpeg" 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%2F9fbbn0xir27ct4lcl17r.jpeg" alt=" " width="800" height="728"&gt;&lt;/a&gt;&lt;br&gt;
. Save and open your website where your report will display.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;CONCLUSION&lt;/strong&gt;&lt;br&gt;
Using Power BI with embedding capabilities promotes better collaboration, transparency and efficiency. This empowers users to embrace data-driven solutions that support smarter strategies and improved outcomes.&lt;/p&gt;

</description>
      <category>datascience</category>
    </item>
    <item>
      <title>HOW EXCEL IS USED IN REAL-WORLD DATA ANALYSIS</title>
      <dc:creator>Mark Glemba</dc:creator>
      <pubDate>Tue, 31 Mar 2026 19:39:06 +0000</pubDate>
      <link>https://dev.to/mark_glemba_962f6bc8a12dd/how-excel-is-used-in-real-world-data-analysis-364</link>
      <guid>https://dev.to/mark_glemba_962f6bc8a12dd/how-excel-is-used-in-real-world-data-analysis-364</guid>
      <description>&lt;p&gt;&lt;strong&gt;INTRODUCTION&lt;/strong&gt;&lt;br&gt;
Excel is a tool one can use to organize data for work or any other specific software functions. It allows one to develop graphs for comparison of data and create charts to organize and visualize data.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;HOW EXCEL IS USED IN REAL WORLD SCENARIOS&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;DATA CLEANING&lt;/strong&gt;&lt;br&gt;
Excel is in various ways for data cleaning by performing functions such as; removing duplicates, trimming spaces, fixing formatting, finding errors, standardizing data, splitting data and filling blanks.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;DATA SUMMARIZATION&lt;/strong&gt;&lt;br&gt;
Excel summarizes large data sets to offer quick insights by use of; pivot tables, formulas and functions, instead of users manually going through large data sets.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;VISUALIZING TRENDS&lt;/strong&gt;&lt;br&gt;
Done by the use of charts; pie, line and bar charts.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;FORMULAS USED IN EXCEL&lt;/strong&gt;&lt;br&gt;
Basic formulas in excel include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Add&lt;/strong&gt;: Used to add values of two or more cells. The &lt;strong&gt;(+)&lt;/strong&gt; is used.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Subtract&lt;/strong&gt;: Used to subtract values of two or more cells. The &lt;strong&gt;(-)&lt;/strong&gt; is used.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Multiply&lt;/strong&gt;: Used to multiply values of two or more cells. The &lt;strong&gt;(*)&lt;/strong&gt; is used.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Divide&lt;/strong&gt;: Used to divide values of two or more cells. The &lt;strong&gt;(/)&lt;/strong&gt; is used.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;BASIC FUNCTIONS USED IN EXCEL&lt;/strong&gt;&lt;br&gt;
Functions are used to automate tasks normally performed by formulas in excel. Some popular and basic functions include:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; &lt;strong&gt;AVERAGE&lt;/strong&gt;: It sums up and calculate the mean of values within a range given. For example,&lt;strong&gt;=AVERAGE(A1:A15)&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;SUM&lt;/strong&gt;: It adds up a range of cells. For example,&lt;strong&gt;=SUM(A1:A15)&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;IF&lt;/strong&gt;: Used to arrange values based on a logical test. The syntax for IF ; =IF(logical_test, value_if_true, [value_if_false]). For example, &lt;strong&gt;=IF(N2&amp;gt;30, "young", "old")&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;COUNTIF&lt;/strong&gt;: Used to return the number of cells that meeet a certain criteria. The syntax is; =COUNTIF(range, criteria). For example, &lt;strong&gt;=COUNTIF(A1:A27, "Nairobi")&lt;/strong&gt;.
NOTE: COUNTIFS function counts the number of cells that meet multiple criteria.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;VLOOKUP&lt;/strong&gt;: Allows one to search for a value on a spreadsheet. Its syntax ; =VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup]). For example, &lt;strong&gt;=VLOOKUP(300,A1:A20, 3, "False")&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;CONCLUSION&lt;/strong&gt;&lt;br&gt;
In conclusion Excel's versatility makes it an efficient tool for quick analysis and reporting. Its availability allows users to efficiently handle large data sets through processes such as performing calculations and creating meaningful visuals.&lt;/p&gt;

</description>
      <category>datascience</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Understanding Data Modelling in Power BI: Joins, Relationships and Schemes Explained</title>
      <dc:creator>Mark Glemba</dc:creator>
      <pubDate>Tue, 31 Mar 2026 19:13:12 +0000</pubDate>
      <link>https://dev.to/mark_glemba_962f6bc8a12dd/understanding-data-modelling-in-power-bi-joins-relationships-and-schemes-explained-290o</link>
      <guid>https://dev.to/mark_glemba_962f6bc8a12dd/understanding-data-modelling-in-power-bi-joins-relationships-and-schemes-explained-290o</guid>
      <description>&lt;p&gt;&lt;strong&gt;DATA MODELLING&lt;/strong&gt;&lt;br&gt;
This is a detailed process that involves creating a visual representation of data and its relationships.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;TYPES OF TABLES&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;FACT TABLE&lt;/strong&gt;&lt;br&gt;
It contains quantitative data for analysis.&lt;br&gt;
&lt;strong&gt;DIMENSIONS TABLE&lt;/strong&gt;&lt;br&gt;
Provides context to fact table data.&lt;br&gt;
&lt;strong&gt;STAR SCHEMA&lt;/strong&gt;&lt;br&gt;
It contains a single fact table in the center that connects to multiple other dimensiontables.&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%2Fhnqptmrm9lwn09l1c6p6.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%2Fhnqptmrm9lwn09l1c6p6.png" alt=" " width="800" height="501"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;SNOW FLAKE&lt;/strong&gt;&lt;br&gt;
Is an extension of a star schema where dimension tables are broken down into subdimensions.&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%2Frmgjq5uw3m618mmypbu5.jpeg" 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%2Frmgjq5uw3m618mmypbu5.jpeg" alt=" " width="783" height="391"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;FLAT TABLE&lt;/strong&gt;&lt;br&gt;
A table that displays data in a simple, two-dimensional format without any relationships to other tables.&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%2Fcuh1hfu2hlsjwvys5wqa.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%2Fcuh1hfu2hlsjwvys5wqa.png" alt=" " width="800" height="525"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;SQL JOINS IN POWER BI&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;INNER JOIN:&lt;/strong&gt; Returns rows present in both tables if there is a match.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;LEFT JOIN:&lt;/strong&gt; Returns all rows present in the left table and matching rows from the right table.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;RIGHT JOIN:&lt;/strong&gt; Returns matching rows from the left table and all rows present in the SQL right table.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;FULL OUTER:&lt;/strong&gt; Returns all rows present in both right and left tables.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;LEFT ANTI:&lt;/strong&gt; Returns rows from the left table that don't have matches in the right table.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;RIGHT ANTI:&lt;/strong&gt;Returns rows from the right table that don't have matches in the left table.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;POWER BI RELATIONSHIPS&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;One-to-Many (1:M)&lt;/strong&gt;&lt;br&gt;
One row in table A matches many in table B. For example, &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%2Fnhelnult1lnrvrbes04n.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%2Fnhelnult1lnrvrbes04n.png" alt=" " width="800" height="351"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Many-to Many (M:M)&lt;/strong&gt;&lt;br&gt;
Here one is recommended to use a bridge table.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;0ne-to-One (1:1)&lt;/strong&gt;&lt;br&gt;
One row in table A matches one in table B. For example,&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%2Ftqgau1iya4upchk3qxp1.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%2Ftqgau1iya4upchk3qxp1.png" alt=" " width="800" height="411"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Many-to-One (M:M)&lt;/strong&gt;&lt;br&gt;
Many rows in table A match one in table B. For example,&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%2Fhvkik8sqappibthjegf8.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%2Fhvkik8sqappibthjegf8.png" alt=" " width="800" height="413"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Active and Inactive relationships&lt;/strong&gt;&lt;br&gt;
The active relationship is used by default in reports and calculations, while the inactive relationship is not used unless specified. It is also useful for alternate paths such as multiple dates.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;DIFFERENCE BETWEEN JOINS AND RELATIONSHIPS&lt;/strong&gt;&lt;br&gt;
Joins; combine tables based on a condition, result in new tables with combined columns and are used in power query steps. Relationships; define connections between tables in a data model and are used for; filtering, calculations and visuals across tables.&lt;/p&gt;

</description>
      <category>datascience</category>
    </item>
  </channel>
</rss>
