- The Query
- Posts
- π€ the most festive data meme π π»
π€ the most festive data meme π π»
The Query (aka Kyle and Cody) here π
Hereβs what we have for you today:
Remote data jobs πΌ
Using CASE statements to pivot data π
A useful SQL JOINS resource π€
A festive meme π€£π π»
select * from data-jobs
remote, data jobs
Because who likes writing SQL from a busy office?
Data Analyst @ Milliman β $66-129k per year (apply here)
Data Analyst II @ Renaissance β $61-85k per year (apply here)
Senior Data Analyst @ Misfits Market β $105-120k per year (apply here)
freelance gigs
Need work experience? Get real experience with real projects.
Help comparing 2 Excel files β $intermediate (apply here)
Short term Data Analyst needed β $100 fixed price (apply here)
Excel Help wanted β $intermediate (apply here)
def content_spotlight(π¦):
Joins are foundational in SQL. But for beginners, comprehending them can be daunting. Youβll need a lot of practice writing joins before the concept is second nature.
In the meantime, bookmark this article on understanding SQL joins and use it as a reference whenever youβre confused about joining two tables.
Keep this in mind β Joins should list the left table first (i.e. the table youβre joining data to). Itβll be easier for you to visualize the joins when you structure them this way.
class MiniLesson:
Pivot Data with CASE Statements
Kyle here π β One useful feature of CASE statements is to pivot data dynamically.
CASE statements can transform data in ways beyond simple conditional expressions.
One interesting application of CASE statements + aggregate functions is to pivot data dynamically, creating a more readable and structured view of your dataset.
Pivoting data means converting rows into columns, which can be especially useful when dealing with categorical data.
Here's an example of how you can use the CASE statement to pivot data:
In this query, we used SUM functions and CASE statements to pivot the age_group column, converting it into separate columns for each age group's dog count.
Here is what that looks like before & after the pivot:
import memes as π
content & resources π€
1. Become a Data Analyst Guide: Our full guide on what it takes to land a job as a data analyst.
2. Download our SQL Cheatsheet as a PDF and desktop wallpaper here.
4. Courses: Our course on showcasing your data portfolio is live!
Thatβs it for today.
Stay crunchinβ folks and see you next week!
β Kyle & Cody
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
What'd you think of today's newsletter? |