# What does the WHERE clause "1=1" mean in SQL?

When you use 1=1 as the condition, it essentially means where true . Since the equality condition 1=1 is always true, the WHERE clause does not filter out any records. In other words, it returns all the records from the table without any filtering.

Bron: [where true](https://pushmetrics.io/blog/why-use-where-1-1-in-sql-queries-exploring-the-surprising-benefits-of-a-seemingly-redundant-clause/#:~:text=When%20you%20use%201%3D1,the%20table%20without%20any%20filtering.)

Onderwerp: [Techniek & internet](https://1001vragen.nl/onderwerp/techniek-en-internet)
Toegevoegd: 2026-11-10
Webpagina: https://1001vragen.nl/vraag/what-does-the-where-clause-1-1-mean-in-sql

## Verwante vragen

- [What are the two required clauses for a SELECT statement?](https://1001vragen.nl/vraag/what-are-the-two-required-clauses-for-a-select-statement.md)
- [Which clause is used to filter results in SQL?](https://1001vragen.nl/vraag/which-clause-is-used-to-filter-results-in-sql.md)
- [Which clause is used to find a pattern in character data?](https://1001vragen.nl/vraag/which-clause-is-used-to-find-a-pattern-in-character-data.md)
- [Can we use CASE statement in group by clause?](https://1001vragen.nl/vraag/can-we-use-case-statement-in-group-by-clause.md)
- [What does the using clause in a join do?](https://1001vragen.nl/vraag/what-does-the-using-clause-in-a-join-do.md)
- [How to write select query with where clause in SQL?](https://1001vragen.nl/vraag/how-to-write-select-query-with-where-clause-in-sql.md)
- [What is the limit clause in SQL injection?](https://1001vragen.nl/vraag/what-is-the-limit-clause-in-sql-injection.md)
- [What does <> indicate in SQL?](https://1001vragen.nl/vraag/what-does-indicate-in-sql.md)
- [What is ORDER BY 2 in SQL?](https://1001vragen.nl/vraag/what-is-order-by-2-in-sql.md)
- [Hoe lang moet ik koken voor een zacht gekookt ei?](https://1001vragen.nl/vraag/hoe-lang-moet-ik-koken-voor-een-zacht-gekookt-ei.md)
