Programming Phoenix 1.4: Inconsistent query result (page 132)

take a look at this code for counting all users with usernames starting with j or c.

The query then returns a count of 2.

However, Chris’s username is mccord (page 64), so the result should be 1, or the query should be searching for m instead of c.

1 Like