The Searching for records recipe of this chapter The Executing raw SQL queries recipe in Chapter 9, Advanced Server-Side Development Techniques