Refine Our Results with the Where Expression

Learn how to refine results using the where option.

Now that we know some of the query basics, we’ll filter the results with the where option. We’ll also see how to integrate dynamic input into queries, like user input, and how Ecto protects us from SQL injection attacks.

Filter results with where

To start, we’re going to look up the id and name for the artist named “Bill Evans.”

Get hands-on with 1200+ tech skills courses.