First page Back Continue Last page Overview Graphics


Notes:

The standard SQL branch construct is the CASE statement, which operates similarly to a C switch statement.

Sequel's syntax is more concise. You just call the case method on a hash.

If any of the keys in the hash match the second argument to case, the result is the value.

If none of the keys match, the result is the first argument to case.