DEV Community

Durga Pokharel
Durga Pokharel

Posted on

2 3

Day 60 Of 100DaysOfCode: Intermediate SQL

Today is my 60th day of #100DaysOfcode and #python learning. Today I learned intermediate SQL( CASE statement) from Datacamp. Also had taken video lecture of Algorithmic toolbox from Coursera

SQL CASE Statement

SELECT 
    season,
    date,
    home_goal,
    away_goal
FROM matches_italy
WHERE 

    CASE WHEN hometeam_id = 9857 AND home_goal > away_goal THEN 'Bologna Win'
        WHEN awayteam_id = 9857 AND away_goal > home_goal THEN 'Bologna Win' 
        END IS NOT NULL;
Enter fullscreen mode Exit fullscreen mode

Day 60 Of #100DaysOfCode and #Python
* Algorithmic Toolbox
* Intermediate SQL(CASE Statement ) #WomenWhoCode #100DaysOfCode #CodeNewbie #DEVCommunity pic.twitter.com/h3Icwdkt7m

— Durga Pokharel (@mathdurga) February 26, 2021

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay