Back to articles
EXPLORING SQL JOINS AND WINDOWS

EXPLORING SQL JOINS AND WINDOWS

via Dev.toBeverline Otiende

In real world analytics, data rarely exists in isolation, rather it is usually stored in separate but related tables. Extracting meaningful insights from these related tables usually require more advanced SQL concepts like; Joins: which allow you to combine data from multiple tables. Window functions: allow you to perform calculations across rows without collapsing your dataset. Mastering these tools transforms SQL from a querying language into a powerful analytical engine. Together they unlock powerful analysis. In this article we explore more about JOINS and WINDOWS and how we can use them in our analysis. SQL JOINS A SQL join combines rows from two or more tables based on a related column. Think of it like merging two Excel sheets sing a common column. We use joins when; You have a Normalized Database Information is split across multiple tables You need enriched reporting datasets Types of Joins Lets use these two tables to understand more about the types of joins. The first table i

Continue reading on Dev.to

Opens in a new tab

Read Full Article
4 views

Related Articles