Skip to main content
SQL • LESSON 05

Filtering with Comparison Operators

How can we filter records using numeric comparisons?

Beginner2 Minutes120 XP
🤔 THE QUESTION

How can we filter records using numeric comparisons?

💡 WHAT IS IT?

Comparison operators (> , < , >= , <= , !=) allow filtering based on numeric and date thresholds.

🎯 WHAT IS IT USED FOR?

Identifying high-earning staff, finding orders above threshold amounts, filtering recent dates.

💻 EXAMPLE
SELECT *
FROM employees
WHERE salary > 50000;

🎯 Mission Objectives

Practice typing production-grade SQL code for Filtering with Comparison Operators.

  • WHERE
  • Greater than (>)
  • Numeric thresholds
  • Filtering