• Skip to primary navigation
  • Skip to content
  • Skip to footer
Thomas Ngo Thomas Ngo Crafting Elegant Solutions Through Code
  • Home
  • Journal
  • Tags
  • About

    Thomas Ngo

    Software Engineer

    • Stanton, California
    • Email
    • GitHub
    • Resume

    SQL problem - List the Products Ordered in a Period

    March 3, 2024 less than 1 minute read

    Page Navigation

    • Problem
    • Query
    1 min read 100 words

    Problem

    problem-1327

    Query

    SELECT
        p.product_name,
        SUM(o.unit) as unit
    FROM
        Products p,
        Orders o
    WHERE
        p.product_id = o.product_id
        AND YEAR(o.order_date) = 2020
        AND MONTH(o.order_date) = 2
    GROUP BY
        product_name
    HAVING
        SUM(o.unit) >= 100
    

    Tags: SQL

    Updated: March 3, 2024

    Share on

    X Facebook LinkedIn Bluesky
    Previous Next

    Leave a comment

    You may also enjoy

    User Impersonation for QA & Dev in Windows Auth with ASP.NET Core MVC (.NET 10)

    September 14, 2026 7 minute read

    Learn how to build a safe, production-grade user impersonation mechanism in ASP.NET Core MVC (.NET 10) to streamline QA and local development for Windows Aut...

    A Simple Guide to the Decorator Pattern: User Impersonation in ASP.NET Core MVC (.NET 10)

    September 14, 2026 4 minute read

    Design patterns often feel intimidating when buried under enterprise boilerplate or third-party libraries. However, the Decorator Pattern is simple, elegant,...

    How to Create a Custom .NET 10 MVC & API Solution Template

    September 14, 2026 36 minute read

    When starting a new project or onboarding team members, setting up the same repetitive multi-project architecture by hand (creating a modern solution file, a...

    Windows Task Scheduler

    September 5, 2026 1 minute read

    Sometimes, we need to run daily task or schedule a process to run on a window server. This can be tedious and time consuming. So, it’s better to find a way t...

    • Follow:
    • GitHub
    • LinkedIn
    © 2026 Thomas Ngo.