Founding price US$69 a year · regular US$99 · See Pro
Tsai Electro

You are here

Filter and group rows in SQL

Station 3 of 30

Already know this? Jump to the check

15 min

Learning evidence

  1. Viewed
  2. Practiced
  3. Check completed
  4. Practical task completed

Light it up

15-min station · view, practice, pass the check, do the task
Your accountProgress log — saves your learning evidence

Data Scientists · Career line

  1. Data Scientists
Next stationJoin two SQL tables without multiplying rows →

Frame a business question around a decision → Data Scientists

What this skill is

Start in the approved read-only SQL environment and inspect the columns, row meaning and a small sample. Select the ID, date, status and depot instead of pulling every field.

Why the job needs it

Filter and group rows in SQL.

What the lesson covers

  • 15-minute lesson
  • 2 practice tasks
    • The filtered set has 540 rows, and COUNT(closed_at) returns 487.
    • Write the interval boundaries for a timestamp-based report covering July 1 through July 7.
  • 5-question check

Preview

What does COUNT(delivered_at) count in a filtered query?

  1. Rows with any status in the source
  2. Distinct orders sharing a delivery time
  3. Rows whose timestamp was stored first
  4. Rows whose delivery time is present

Every lesson is free with an account. Pro adds saved Job Desk quotes with clean PDFs, the Apprentice Hours log, and your progress saved across every tree.

Sources

https://www.postgresql.org/docs/current/queries-table-expressions.html · 2026-12-03

★ Resources
Scroll to Top
Not a licensed Professional Engineer in Texas or any U.S. state. Does not offer engineering services. Exam-prep education only.