Loading topic
WHERE clause uses predicates to keep only rows that match a condition. This chapter assumes you know basic SELECT statements, tables, rows, columns, comparison operators such as =, <, and >, and the AND and OR operators.2 min readSELECT statements, tables, columns, comparison operators, and AND/OR. This chapter focuses on matching text patterns in a WHERE clause.2 min readSELECT statements, use WHERE, and compare values with operators such as = and >. It focuses on one detail of SQL pattern matching: how to search for a literal percent sign or underscore instead of treating it as a wildcard.2 min readSELECT statements, tables, columns, comparison operators, and WHERE clauses. The examples use an employees table with an id and name column.2 min readSELECT statements, tables, columns, comparison operators, and AND and OR. This chapter shows how to test whether a column matches one value from a set of allowed values.2 min readSELECT statements, understand tables and columns, use comparison operators, and combine conditions with AND and OR. You will learn how to use a subquery with IN when the values to match come from another table.2 min readSELECT statements, tables, columns, comparison operators such as =, <, and >, and the use of AND and OR in a WHERE clause.2 min readSELECT statements, comparison operators, and WHERE clauses. This chapter focuses on filtering dates and timestamps safely, especially when a range includes a complete calendar period.2 min readSELECT statements, tables, columns, comparison operators such as =, <, and >, and AND and OR in a WHERE clause.2 min readSELECT statements, tables, columns, comparison operators, and AND/OR. This chapter focuses on a common SQL surprise: NOT IN can exclude every row when its list or subquery contains NULL.2 min readSELECT statements, tables, columns, comparison operators, and AND and OR. This chapter focuses on excluding rows with NOT LIKE, NOT IN, and NOT BETWEEN, including the effects of NULL.3 min readSELECT statements, use tables and columns, compare values with =, <, and >, and combine conditions with AND and OR. A predicate is a condition that evaluates whether a row matches a filter.2 min readSELECT statements, tables, columns, comparison operators, and AND and OR. You will learn how predicate shape affects index use. A predicate is a condition in a WHERE clause.3 min read