© Kathi Kellenberger, Lee Everest 2021
K. Kellenberger, L. EverestBeginning T-SQLhttps://doi.org/10.1007/978-1-4842-6606-9_9

9. Advanced WHERE Clauses

Kathi Kellenberger1   and Lee Everest2
(1)
Edwardsville, IL, USA
(2)
Euless, TX, USA
 

In Chapter 3, you learned how to write queries with SELECT, FROM, WHERE, and ORDER BY clauses. Chapter 3 covered a lot of options for filtering results with the WHERE clause; however, there is still more to learn. This chapter will discuss using the comparison operator LIKE and matching against a partial value or a pattern, full-text search, WHERE clauses with more than two predicates, and the PATINDEX function.

Pattern Matching

Sometimes, you know only part of the value that will match the data stored in the table. For ...

Get Beginning T-SQL: A Step-by-Step Approach now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.